在生物頭上顯示血量等資訊。
Display blood volume and other information on the head of the creature.
最後測試使用插件版本:
Finally test the plugin version:
Action:
在目標頭上顯示資訊。
Display information on the target head.
目標為怪物列表內的生物。
The target is the creature in the monster list.
EntityTopDisplayMonster:
Action:
- Loop[onStart=EntityTopDisplayMonster-Start;onTime=EntityTopDisplayMonster-Time;onEnd=EntityTopDisplayMonster-End;period=10;duration=200]
EntityTopDisplayMonster-Start:
Action:
- FloatMessage[cm=1;m=&hd_target_nowhealth&/&hd_target_maxhealth&&hd_target_monster_health_proportion&] @LocTarget{LA=0|&hd_target_height&|0}
EntityTopDisplayMonster-Time:
Action:
- FloatMessage[teleport=true] @LocTarget{LA=0|&hd_target_height&|0}
- FloatMessage[cm=1;m=&hd_target_nowhealth&/&hd_target_maxhealth&&hd_target_monster_health_proportion&]
- Break[ConditionType=Compare;cp=&hd_target_nowhealth&~0]
- FloatMessage[delete=true]
- Action[mark=&hd_target_uuid&EntityTopDisplayMonster;stop=true]
EntityTopDisplayMonster-End:
Action:
- FloatMessage[delete=true]
目標為動物列表內的生物。
The target is the creature in the animal list.
EntityTopDisplayAnimal:
Action:
- Loop[onStart=EntityTopDisplayAnimal-Start;onTime=EntityTopDisplayAnimal-Time;onEnd=EntityTopDisplayAnimal-End;period=10;duration=200]
EntityTopDisplayAnimal-Start:
Action:
- FloatMessage[cm=1;m=&hd_target_nowhealth&/&hd_target_maxhealth&&hd_target_animal_health_proportion&] @LocTarget{LA=0|&hd_target_height&|0}
EntityTopDisplayAnimal-Time:
Action:
- FloatMessage[teleport=true] @LocTarget{LA=0|&hd_target_height&|0}
- FloatMessage[cm=1;m=&hd_target_nowhealth&/&hd_target_maxhealth&&hd_target_animal_health_proportion&]
- Break[ConditionType=Compare;cp=&hd_target_nowhealth&~0]
- FloatMessage[delete=true]
- Action[mark=&hd_target_uuid&EntityTopDisplayAnimal;stop=true]
EntityTopDisplayAnimal-End:
Action:
- FloatMessage[delete=true]
目標為為玩家列表內的生物。
The target is the creature in the player list.