在頭上顯示聊天訊息。
Show chat messages on the head.
最後測試使用插件版本:1.16.11
Finally test the plugin version:1.16.11
Action:
Action:
- Action[a=ChatHD] ~onChat
ChatHD:
Action:
- Loop[onStart=ChatHD-Start;onTime=ChatHD-Time;onEnd=ChatHD-End;period=3;duration=30]
ChatHD-Start:
Action:
- Hologram[m=䂭&hd_chat_message&䂯] @LocSelf{LA=0|&hd_chat_height&|0}
- Hologram[m=䂰]
ChatHD-Time:
Action:
- Hologram[teleport=true] @LocAdd{LA=0|0.1|0}
ChatHD-End:
Action:
- Hologram[DeleteAll=true]
Character:
#聊天訊息起始高度(以自身身高+0.5)
#The starting height of the chat message (with one's own height + 0.5)
hd_chat_height:
message:
- content[<cd_self_base_height>+0.5]
- math[fc=Arith]
#聊天訊息
#Chat messages.
hd_chat_message:
message:
- content[<cd_self_player_last_chat>]
#在每個字加上框框字再回推,因為排版再把字往回推一點。
#Add a box word to each word and push it back, because the typesetting pushes the word back a bit.
- Conver[function=ConverAddRL;m=>䂮,>䂮]