I have a right click ability on an item that creates an explosion at the players location, and I have it insta killing all entities in the explosion radius but how do i make it not kill me
[doublepost=1681667312,1681667175][/doublepost]
[doublepost=1681667312,1681667175][/doublepost]
Code:
on join:
set {%player%.hyperion} to 0
on right click:
if player's held item is iron sword named "&dHyperion":
if {%player%.hyperion} is 0:
push player forward at speed 2.5
set {%player%.hyperion} to 1
create a safe explosion of force 2 at player
kill entities in radius 4 around player
wait 0.1 seconds
set {%player%.hyperion} to 0
else:
send "&7This is on cooldown!"
on damage:
if attacker is holding iron sword:
if name of attacker's tool contains "Hyperion":
kill attacked player
Last edited: