Hi, i have a problem in my code
Can someone help me?
Code:
on place of tnt:
if difference between {delay.%player%} and now is less than 1 second:
send "&cESPERA 5 SEGUNDOS"
stop
if name of player's tool = "&6Bomba Mágica":
set {delay.%player%} to now
# cancel event
set {_loc} to location of event-block
spawn an armor stand at {_loc}
set {_as} to last spawned armor stand
set armor stand helmet of {_as} to tnt
add "{NoGravity:1,Invisible:1}" to nbt of {_as}
wait 10 ticks
add "{NoGravity:0}" to nbt of {_as}
wait 10 ticks
set {_headx} to 20
invoke "changenames" from {_as}
loop 100 times:
if {_loopkill} = true:
stop
add "{Pose:{Body:[0f,0f,0f],LeftArm:[0f,0f,0f],RightArm:[0f,0f,0f],LeftLeg:[0f,0f,0f],RightLeg:[0f,0f,0f],Head:[0f,%{_headx}%f,0f]}}" to nbt of {_as}
add 20 to {_headx}
wait 1 tick
create an explosion of force 100 at {_as}
add "{Invisible:0}" to nbt of {_as}
set {_loc} to location of {_as}
set y-coordinate of {_loc} to -5
teleport {_as} to {_loc}
Can someone help me?