Template:Inventory Table/doc

来自Minecraft基岩版开发Wiki
这是文档页面,它应该被放置到Template:Inventory Table,查看Template:Documentation以获取更多信息。

这个模板用来创建类似物品栏中合成网格的界面。

Template:Inventory slot以获取基础用途。此文档页面将介绍其他或不同的功能。

用法[编辑]

{{Inventory Table
|A1=  |B1= Oak Planks
|A2=  |B2= Oak Planks
|Output= Stick,4
}}
效果:

无序[编辑]

如果合成配方是是无序的,请在模板中添加shapeless=1,模板将显示一个图标,将光标悬停在该图标上即可说明无序合成是什么。

{{Inventory Table
|shapeless= 1
|A1= Leather|B1= Paper
|A2= Paper|B2= Paper
|Output= Book,1
}}
效果


shapeless参数不支持动画,因此无法组合无序和有序配方。

动画[编辑]

要使槽位具有动画效果,请列出要显示的方块和物品,并用分号分隔。

{{Inventory Table
|A1= Oak Planks; Spruce Planks; Birch Planks; Jungle Planks
|B1= Oak Planks; Spruce Planks; Birch Planks; Jungle Planks
 |A2= Oak Planks; Spruce Planks; Birch Planks; Jungle Planks
 |B2= Oak Planks; Spruce Planks; Birch Planks; Jungle Planks
|Output= Crafting Table
}}
效果:

模组[编辑]

模组图像和普通图像可以在槽位中组合。

When uploading mod images, they must have the mod page name in parenthesis at the end. For example Fancystone (FancyPack).

The Mod parameter can be used to set a default used for all parameters, this is best used when all items in the crafting table are modded items, or if the mod name is long and using the vanilla (v) parameter for the vanilla items in the table would be quicker.

Note the links of the vanilla Minecraft items, compared to the IndustrialCraft items.

Animation is fully supported between mod and vanilla items.


另见[编辑]