Use BossBar to display your own information.
用BossBar顯示自身訊息。
最後測試使用插件版本:1.16.11
Finally test the plugin version:1.16.11
Action:
在登入時開啟,在登出後關閉。
在按下F鍵時關閉,再按下F鍵時開啟。
Turn on when logging in, and turn off after logging out.
Turn off when the F key is pressed, and turn on when the F key is pressed again.
Action:
- Action[a=BoosBarDisplayShow;mark=&self_name_bossbar&BoosBarDisplayShow] ~onJoin
- Action[mark=&self_name_bossbar&BoosBarDisplayShow;stop=true] ~onQuit
- Action[a=BoosBarDisplayShow;mark=&self_name_bossbar&BoosBarDisplayShow] ~onKeyFOFF
- Action[mark=&self_name_bossbar&BoosBarDisplayShow;stop=true] ~onKeyFON
BoosBarDisplayShow:
Action:
- Loop[onStart=BoosBarDisplayShow-Start;onTime=BoosBarDisplayShow-Time;period=20;duration=0]
BoosBarDisplayShow-Start:
Action:
- BossBar[message=&self_name_bossbar&-&self_nowhealth_bossbar&/&self_maxhealth_bossbar&;Color=RED;Style=SOLID]
BoosBarDisplayShow-Time:
Action:
- BossBar[message=&self_name_bossbar&-&self_nowhealth_bossbar&/&self_maxhealth_bossbar&;Progress=&self_health_proportion_bossbar&]
Character:
self_name_bossbar:
message:
- content[<cd_self_base_name>]
self_nowhealth_bossbar:
message:
- content[<cd_self_base_nowhealth>]
- math [fc=Dec;m=#.0]
self_maxhealth_bossbar:
message:
- content[<cd_self_base_maxhealth>]
self_health_proportion_bossbar:
message:
- content[<cd_self_base_nowhealth>/<cd_self_base_maxhealth>]
- math[fc=Arith]