When the blood volume is lower than the set value, it will flash red.血量低於設定值就顯示紅色閃爍。

最後測試使用插件版本:1.16.11

Finally test the plugin version:1.16.11

Action:

因為使用無限時間任務,必須在離開時關閉。

Because it uses an infinite time mission, it must be closed when leaving.

Action:
- Action[a=TitleHealthDisplay;mark=&title_self_name&TitleHealthDisplay] ~onJoin
- Action[mark=&title_self_name&TitleHealthDisplay;stop=true] ~onQuit
TitleHealthDisplay:
  Action:
  - Loop[onTime=TitleHealthDisplay-Time;period=30;duration=0]

TitleHealthDisplay-Time:
  Action:
  - Break[ConditionType=Compare;ConditionContent=&title_self_health_10&<3]
  - Title[title=§0;subtitle=§0䁾XXX;fadeIn=1;duration=5;fadeOut=1]
  - Sound[sound=heartbeatin;pitch=1;volume=1;category=PLAYERS] @LocSelf{LA=0|1|0}
  - Delay[Ticks=5]
  - Title[title=§4;subtitle=§4䁾XXX;fadeIn=1;duration=5;fadeOut=1]
  - Sound[sound=heartbeatout;pitch=1;volume=1;category=PLAYERS] @LocSelf{LA=0|1|0}

Character:

#用自己的名子作為任務標記。
#Use your name as the task tag.
title_self_name:
  message:
  - content[<cd_self_base_name>]

#自己血量的10分比。
#10 points ratio of own blood volume.
title_self_health_10:
  message:
  - content[<cd_self_base_nowhealth>/<cd_self_base_maxhealth>*10]
  - math[fc=Arith]
  - math [fc=Dec;m=#]