Here is my code, I want to make eggs destroy blocks, but I tested with event-block and didn't work, and this I used to replace it in my code doesn't remove the blocks. HELP!
code_language.skript:
on projectile hit:
projectile is an egg:
shooter is a player:
block at projectile is tnt:
set block at location of projectile to air
create an explosion of force 3 at the projectile
stop trigger
block at projectile is ender chest:
set block at location of projectile to air
stop trigger
set block at location of projectile to air