how do I make the function title(), subTitle() based on MundoSk?
minecraft: 1.11.2
minecraft: 1.11.2
code_language.skript:
function actionBar(text:text,player:player,time:int = 20):
set {_packet} to new play_server_chat packet
set "chatcomponent" pjson 0 of {_packet} to packetJson({_text})
set byte pnum 0 of {_packet} to 2
while {_time} != 0:
send {_player} packet {_packet}
remove 1 from {_time}
wait 1 tick
Last edited: