Code:
command /getWand:
trigger:
give player blaze rod named
on leftclick with blaze rod:
set {p1} to location of event-block
send "&ap1 setted" to player
on rightclick with blaze rod:
set {p2} to location of event-block
send "&ap2 setted" to player
command /setSafeZone:
trigger:
set blocks between {p1} and {p2} to {@safeZone}
send "&aSafe zone create."
on eat of enchanted golden apple:
if name of event-item is "&bBoom":
set player's flight mode to true
apply invisibility to player for 30 seconds
set {_playerloc} to location of player
create a safe explosion of force 5 at {_playerloc}
loop all players in radius 5 of player:
"%loop-player%" is not "%player%"
if location of loop-player is not {@safeZone}:
damage loop-player by 4
send "&c&n&o%loop-player%&c&o -4 HP!" to player
No errors, but players in {@safeZone} are still taking damage. What to do?