模板:Healthbar

出自Minecraft基岩版开发Wiki
[檢視 | 編輯 | 歷史 | 清除緩存]文件頁面

此模板用於建立生命欄。

參數 功能 預設值
1 0至32間的整數值。空心=0,半心=1,整心=2,參見下面的範例。 0
2 每個圖示的寬度。 18px
total 顯示心的總數。 0
poisoned 顯示淺綠色的中毒心 0
withered 顯示黑色的凋零心。 0
hardcore 顯示正常/中毒/凋零/吸收心臟的極限版本。 0
mob 顯示可騎乘生物的心。 0
absorption 顯示出因吸收而增加的心。 0
程式碼 輸出
{{healthbar}} ♥
{{healthbar|0|9px}} ♥
{{healthbar|1}} ♥
{{healthbar|2}} ♥
{{healthbar|5}} ♥♥♥
{{healthbar|5|poisoned=1}} ♥♥♥
{{healthbar|5|withered=1}} ♥♥♥
{{healthbar|5|absorption=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|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|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|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}} ♥♥♥♥

另見[編輯]