Minecraft Wiki

除另有声明,转载时均必须注明出处若簡繁轉換出錯,請以遊戲內為準请勇于扩充与修正内容有兴趣逛逛我们的微博沟通交流,欢迎到社区专页需要协助,请在告示板留言

了解更多

Minecraft Wiki
Advertisement
这是文档页面,它应该被放置到Template:Block。查看Template:Documentation以获取更多信息。
Lua logo

此模板使用了Module:Infobox,此脚本使用Lua编写。
更多详情,请参阅维基百科:LuaMediaWiki:扩展:Scribunto

该模版用于在方块页面提供一个统一的描述模版。

{{Block
|title=
|image=
|invimage=
|type=
|gravity=
|transparent=
|light=
|tntres=
|hardness=
|tool=
|tool2=
|renewable=
|stackable=
|flammable=
|availability=
|experience=
|drops=
|data=
|nameid=
|fluidspeed=
|movespeed=
|firstver=
|firstdev=
|notes=
}}

注意,如果物品有多个数据值,使用 |multipledata= ,而不是 |data=。所有参数的介绍如下:

参数 功能 默认值
title 当需要时用该参数替代页面名作为标题 {{BASEPAGENAME}}
image 方块图像(大小应该在150×150像素左右) 如果存在 {{{title}}}.png 则使用它,否则使用No image.svg(链接到上传文件的页面)
imageN 含双重状态方块的其他图片(大小 150×150像素) None
invimage 该对象在物品栏里的图像。可使用 None 来强制不显示 invimage。使用 Template:Grid 如存在 Grid {{{title}}}.png 则使用之,否则为 None
invimageN 该对象在物品栏里的其他图片。使用 Template:Grid None
type 类型(固体方块、固体、方块或流体) ?
gravity 受重力影响? ?
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. ?
hardness How long the block takes to mine. The value comes from the code; there aren't any units for it. ?
tool Tool to use. Picture means, the block can only be broken with this tool (this quality or better). Outline means, the block can be broken with any tool, but this tool is the quickest. "Any tool" means that every tool is equally effective (or the block can be instantly broken with anything). "None" means the block cannot be broken. ?
tool2 Second tool that can be used, same format than the tool field. ?
renewable Whether the block is renewable ?
stackable Stackable N/A
flammable Whether the block is flammable or not No
availability The availability of an item None
experience The amount of experience dropped when mined or smelted None
drops The item entities dropped when destroyed Itself
data Single decimal data value None
multipledata Multiple decimal data values, use {{dv}} None
nameid The block's named identifier. Can use None to force no name ID. title or {{BASEPAGENAME}}
fluidspeed Speed of fluid movement None
movespeed Speed of walking through None
firstver First version that it was seen in (e.g. Alpha 1.0.17, classic 0.0.23a). None
firstdev First development snapshot it was seen in, requires firstver. None
multiplevers Multiple versions. Links need to be formatted manually. None
notes Adds a centred column spanning across both rows at the bottom of the box None

See also

Minecraft
Minecraft Dungeons
其他
Advertisement