- 致编者:请牢记我们的域名wiki.mcbe-dev.net!
- 致编者:欢迎加入本Wiki的官方交流QQ群或Discord服务器!
- 基岩版1.19.31现已发布!(了解更多)
- Inner Core现已支持Xbox模组联机!(了解更多)
- 如果您是第一次来到本Wiki,欢迎注册一个账户
- 点击顶部的“编辑”或“编辑源代码”按钮即可编辑当前页面
- 请知悉:在不登录时也可以编辑和新建页面,但是您当前的IP地址会记录在编辑历史中
模板:Hp
来自Minecraft基岩版开发Wiki
This template displays health points and visualizes these with the help of a health bar.
For a more compact display, all health point values above 16 (8 hearts) are replaced by × [hp / 2].
Parameter | Function | Default value |
---|---|---|
1 |
Amount of hearts to show. | 0 |
2 |
Size of hearts. | 9px |
poisoned |
Show yellow-green heart icons. | 0 |
withered |
Show black withered heart icons. | 0 |
absorption |
Show absorption heart icons. | 0 |
hardcore |
Show hardcore heart icon variation. | 0 |
notag |
Remove number and parenthesis. | 0 |
Code | Result |
---|---|
{{hp}} |
0() |
{{hp|0}} |
0() |
{{hp|4}} |
4() |
{{hp|7|poisoned=1}} |
7() |
{{hp|7|withered=1}} |
7() |
{{hp|7|absorption=1}} |
7() |
{{hp|7|hardcore=1}} |
7() |
{{hp|7|hardcore=1|poisoned=1}} |
7() |
{{hp|7|hardcore=1|withered=1}} |
7() |
{{hp|7|hardcore=1|absorption=1}} |
7() |
{{hp|7|mob=1}} |
7() |
{{hp|4|18px}} |
4() |
{{hp|16|notag=1}} |
× 8 |
{{hp|26|notag=1}} |
× 13 |
{{hp|16}} |
16( × 8) |
{{hp|20}} |
20( × 10) |
{{hp|41}} |
41( × 20.5) |