Code:
on right click:
if player's tool is iron sword named "&6Hyperion":
loop 8 times:
if block 1 in front of player is air, void air, cave air , water, kelp, grass or tall grass:
teleport player 1 block in front of player
else:
stop loop
teleport player 1 block above player
create a fake explosion 1 meter above the player
create a fake explosion 1 meter in front of the player
damage all entities in radius 10 of player by 50
set {hyperion.%player%} to 1
wait 0.1 seconds
set {hyperion.%player%} to 0
so i have this code and i have other code that checks if the damage taken is by a player so is there a way to make it like
Code:
damage all entities in radius 10 of player by 50 as player