en faite c pas une commande c un event:
on rightclick with {@fun-item-firework}:
if player's world is "{@enable-world}":
if name of player's tool is "{@fun-name-firework}":
if {ci.statu} is "true":
if {%uuid of player%.fw.delay} = 0:
set {_x} to x-coord of player
set {_y} to y-coord of player
set {_z} to z-coord of player
make console execute command "/summon FireworksRocketEntity %{_x}% %{_y}% %{_z}% {LifeTime:20,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Flicker:1,Trail:1,Colors:[16764982],FadeColors:[16731929,2096942,9408511]},{Type:0,Flicker:0,Trail:0,Colors:[13178879],FadeColors:[16777215]}]}}}}"
send "%{_x}%, %{_y}%, %{_z}%" to player
set {%uuid of player%.fw.delay} to 5
while {%uuid of player%.fw.delay} > 0:
wait 1 second
add -1 to {%uuid of player%.fw.delay}
else:
send "Veuillez attendre encore §c%{%uuid of player%.fw.delay}% seconde(s)§r." to player
j'éxecute avec la console car sinon on à pas la perm et je fait ça pour un script a poster