本站文本内容除另有声明外,转载时均必须注明出处。(详情…)本站文本内容除另有声明外,转载时均必须注明出处。(详情…)中文Minecraft Wiki是完全公开的。请勇于扩充与修正内容!中文Minecraft Wiki是完全公开的。请勇于扩充与修正内容!Minecraft中文Wiki微博正在更新!或许有兴趣去看看?Minecraft中文Wiki微博正在更新!或许有兴趣去看看?想与其他用户进行编辑上的沟通?社区专页正是为此创建的。想与其他用户进行编辑上的沟通?社区专页正是为此创建的。翻译或创建页面之前,不妨看看译名标准化与Wiki条例页面。翻译或创建页面之前,不妨看看译名标准化与Wiki条例页面。需要管理员的协助?在管理员告示板留言也许可以帮到您。需要管理员的协助?在管理员告示板留言也许可以帮到您。
We are currently performing an upgrade to our software. This upgrade will bring MediaWiki from version 1.31 to 1.33. While the upgrade is being performed on your wiki it will be in read-only mode. For more information check here.
Template:Mod/Block
This template provides a uniform design for block pages of mods.
Differences between the standard Block template and the Mod/Block template are:
- Title defaults to {{SUBPAGENAME}} instead of {{BASEPAGENAME}}
- Image defaults to appending the name of your mod to the end of the image {{{title}}} (Name of Mod).png
- Added image title to 2nd and 3rd image, for consistancy with the first
- Custom tools can now be added to tool and tool2
- Version links to Mods/Name of Mod/Version n.n.n
- Category links to Mods/Name of Mod/{{{type}}}
{{Block |title= |image= |image2= |image3= |invimage= |invimage2= |invimage3= |invimage4= |invimage5= |invimage6= |invimage7= |invimage8= |invimage9= |invimage10= |invimage11= |invimage12= |invimage13= |invimage14= |invimage15= |invimage16= |type= |gravity= |transparent= |light= |tntres= |tool= |renewable= |stackable= |data= |fluidspeed= |movespeed= |firstver= |notes= }}
Please note the unusual markup at the beginning and end; copy it verbatim if you are creating a new block page. Also note that if the item has multiple data values, use |multipledata=
instead of |data=
. See below:
Parameter | Function | Default value |
---|---|---|
title |
Only needed to change the title from the page name | {{SUBPAGENAME}}
|
image |
Image of the block (should be approx. 150x150px) Attempts for an image are made in the following sequence:
|
No block image.png |
image2 |
Second image for two-state blocks (also approx. 150x150px) | None |
image3 |
Third image for three-state blocks (also approx. 150x150px) | None |
invimage |
Image for object in inventory. Can use None to force no invimage. Uses Template:Grid. | Grid {{{title}}} (Name of Mod).png if it exists, otherwise None
|
invimage2 |
Second image for two-state objects in inventory. Uses Template:Grid. | None |
invimage3 |
Third image for three-state objects in inventory. Uses Template:Grid. | None |
invimage4 |
Fourth image for four-state objects in inventory. Uses Template:Grid. | None |
invimage5 |
Fifth image for five-state objects in inventory. Uses Template:Grid. | None |
invimage6 |
Sixth image for six-state objects in inventory. Uses Template:Grid. | None |
invimage7 |
Seventh image for seven-state objects in inventory. Uses Template:Grid. | None |
invimage8 |
Eighth image for eight-state objects in inventory. Uses Template:Grid. | None |
invimage9 |
Ninth image for nine-state objects in inventory. Uses Template:Grid. | None |
invimage10 |
Tenth image for ten-state objects in inventory. Uses Template:Grid. | None |
invimage11 |
Eleventh image for eleven-state objects in inventory. Uses Template:Grid. | None |
invimage12 |
Twelfth image for twelve-state objects in inventory. Uses Template:Grid. | None |
invimage13 |
Thirteenth image for thirteen-state objects in inventory. Uses Template:Grid. | None |
invimage14 |
Fourteenth image for fourteen-state objects in inventory. Uses Template:Grid. | None |
invimage15 |
Fifteenth image for fifteen-state objects in inventory. Uses Template:Grid. | None |
invimage16 |
Sixteenth image for sixteen-state objects in inventory. Uses Template:Grid. | None |
type |
Type (solid block, solid, block, or fluid) | ? |
gravity |
Affected by gravity? | ? |
dirt |
Requires sunlight/dirt? | None |
transparent |
Can you see through some part of this block? Not as obvious as it seems, see Opacity. | ? |
light |
Emits Light? If "Yes," add the light value like this: "Yes, 9" | ? |
tntres |
Block's resistance to explosions. The value comes from the code; there aren't any units for it. | ? |
tool |
Tool to use, or a custom tool with:
|
? |
renewable |
Whether the block is renewable | ? |
stackable |
Stackable | N/A |
data |
Single decimal data value | None |
multipledata |
Multiple decimal data values, use {{dv}} |
None |
fluidspeed |
Speed of fluid movement | None |
movespeed |
Speed of walking through | None |
firstver |
First version of the mod that it was seen in (e.g. Alpha 1.2, or 1.5.0). | None |
notes |
Adds a centred column spanning across both rows at the bottom of the box | None |
See also[编辑源代码]
{{3rd Party Tool}}
{{Biome}}
{{Block}}
{{BlockTileEntity}}
{{Entity}}
{{Food}}
{{Gamemode}}
{{Item}}
{{ItemEntity}}
{{Mod}}
{{Person}}
{{Profile}}
{{Program}}
{{Structure}}
{{Version nav}}
- Module:Infobox