本站文本内容除另有声明外,均在知识共享 署名-非商业性使用-相同方式共享 3.0 协议下提供。(详情…本站文本内容除另有声明外,均在知识共享 署名-非商业性使用-相同方式共享 3.0 协议下提供。(详情…中文Minecraft Wiki是完全公开的。请勇于扩充与修正内容!中文Minecraft Wiki是完全公开的。请勇于扩充与修正内容!Minecraft中文Wiki微博正在更新!或许有兴趣去看看Minecraft中文Wiki微博正在更新!或许有兴趣去看看想与其他用户进行编辑上的沟通?社区专页正是为此创建的。想与其他用户进行编辑上的沟通?社区专页正是为此创建的。翻译或创建页面之前,不妨看看译名标准化Wiki条例页面。翻译或创建页面之前,不妨看看译名标准化Wiki条例页面。需要管理员的协助?在管理员告示板留言也许可以帮到您。需要管理员的协助?在管理员告示板留言也许可以帮到您。

Template:Drop

来自Minecraft Wiki
跳转至: 导航搜索
[查看 | 编辑 | 历史 | 清除缓存]文档页面

此模板用于向{{Infobox}}模板添加掉落物信息。

Usage[编辑源代码]

The minimum drop number should always be filled in for common drops, even if it is always a single drop. Uncommon drops are always a single drop, however have different chances to drop, so the chance (in percentage) should be used instead. Rare drops are also always a single drop, but all have the same drop chance, so no drop number should be added.

Each drop is a list item, and so multiple can be entered on separate lines with no need for line breaks. In infoboxes, the drop fields have the list-style-none class, which hides the bullet point.

Parameters[编辑源代码]

Parameter Usage Example
1 Drop type Block
2 Drop name Wool
3 Minimum drop number, or drop chance
4 Maximum drop number
when A condition that must be true for the drop to happen on fire
edition The edition that the drop is exclusive to Pocket
note Any additional text to add after the drop
text Different text to display instead of the drop name
id Different ID to use for the drop sprite instead of the drop name grass-block-top

Examples[编辑源代码]

{{Drop|Block|Wool|1}}
{{Drop|Item|Spider Eye|33.3%|when=killed by the player}}
{{Drop|Item|id=chestplate|Armor|text=Random Armor}}
{{Drop|Item|Raw Mutton|1|2|upcoming=1.8}}
{{Drop|Item|Glowstone Dust|0|2|when=killed by the player|edition=console}}
[查看 | 编辑 | 历史 | 清除缓存]上述文档是从Template:Drop/doc引用的。