Minecraft Wiki

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

了解更多

Minecraft Wiki
Advertisement
[查看 | 编辑 | 历史 | 清除缓存]文档页面
Lua logo.svg

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

此模板用于创建生命栏。

参数 功能 默认值
1 0至32间的整数值。空心=0,半心=1,整心=2,参见下面的示例。 0
2 每个图标的宽度。 18px
link 图标的链接。
total 显示心的总数。 0
poisoned 显示黄绿色的中毒心
withered 显示黑色的凋零心。
freezing 显示蓝色的冰冻心。
hardcore 显示正常/中毒/凋零/伤害吸收心脏的极限版本。
mob 显示可骑乘生物的心。
absorption 显示出因伤害吸收而增加的心。
代码 输出
{{healthbar}} ♥
{{healthbar|0|9px}} ♥
{{healthbar|1}} ♥
{{healthbar|2}} ♥
{{healthbar|5}} ♥♥♥
{{healthbar|5|poisoned=1}} ♥♥♥
{{healthbar|5|withered=1}} ♥♥♥
{{healthbar|5|absorption=1}} ♥♥♥
{{healthbar|5|freezing=1}} ♥♥♥
{{healthbar|5|hardcore=1}} ♥♥♥
{{healthbar|5|poisoned=1|hardcore=1}} ♥♥♥
{{healthbar|5|withered=1|hardcore=1}} ♥♥♥
{{healthbar|5|absorption=1|hardcore=1}} ♥♥♥
{{healthbar|5|mob=1}} ♥♥♥
{{healthbar|5|total=10}} ♥♥♥♥♥
{{healthbar|5|total=10|poisoned=1}} ♥♥♥♥♥
{{healthbar|5|total=10|withered=1}} ♥♥♥♥♥
{{healthbar|5|total=10|absorption=1}} ♥♥♥♥♥
{{healthbar|5|total=10|freezing=1}} ♥♥♥♥♥
{{healthbar|5|total=10|hardcore=1}} ♥♥♥♥♥
{{healthbar|5|total=10|poisoned=1|hardcore=1}} ♥♥♥♥♥
{{healthbar|5|total=10|withered=1|hardcore=1}} ♥♥♥♥♥
{{healthbar|5|total=10|absorption=1|hardcore=1}} ♥♥♥♥♥
{{healthbar|5|total=10|mob=1}} ♥♥♥♥♥
{{healthbar|20}} ♥♥♥♥♥♥♥♥♥♥
{{healthbar|20|poisoned=1}} ♥♥♥♥♥♥♥♥♥♥
{{healthbar|11|9px}} ♥♥♥♥♥♥
{{healthbar|11|9px|poisoned=1}} ♥♥♥♥♥♥
{{healthbar|11|9px|withered=1}} ♥♥♥♥♥♥
{{healthbar|11|9px|absorption=1}} ♥♥♥♥♥♥
{{healthbar|11|9px|freezing=1}} ♥♥♥♥♥♥
{{healthbar|11|9px|hardcore=1}} ♥♥♥♥♥♥
{{healthbar|11|9px|poisoned=1|hardcore=1}} ♥♥♥♥♥♥
{{healthbar|11|9px|withered=1|hardcore=1}} ♥♥♥♥♥♥
{{healthbar|11|9px|absorption=1|hardcore=1}} ♥♥♥♥♥♥
{{healthbar|11|9px|mob=1}} ♥♥♥♥♥♥
{{healthbar|7|45px}} ♥♥♥♥
{{healthbar|7|45px|poisoned=1}} ♥♥♥♥
{{healthbar|7|45px|withered=1}} ♥♥♥♥
{{healthbar|7|45px|absorption=1}} ♥♥♥♥
{{healthbar|7|45px|freezing=1}} ♥♥♥♥
{{healthbar|7|45px|hardcore=1}} ♥♥♥♥
{{healthbar|7|45px|poisoned=1|hardcore=1}} ♥♥♥♥
{{healthbar|7|45px|withered=1|hardcore=1}} ♥♥♥♥
{{healthbar|7|45px|absorption=1|hardcore=1}} ♥♥♥♥
{{healthbar|7|45px|mob=1}} ♥♥♥♥

另见

Advertisement