I'm working on a zombie apocalypse and I'm making guns right now I'm trying to make a grenade launcher and it is not working (There is no errors from Skript)
Here is the code:
If you can please can you also provide a way to damage entities around the arrow on the shot.
Thank you in advance.
Here is the code:
Code:
on right click holding a gold ingot:
if the name of event-item is "Milkor MGL":
if {delay.Milkor.%player%} is not set:
player has coal
remove coal from the player
make the player shoot an arrow at speed 1.5
set the name of the last shot arrow to "MilkorShot"
on projectile hit:
projectile is an arrow
the projectile's name is "MilkorShot"
play explosion at the projectile
create an explosion of force 10 at the projectile
delete the projectile
If you can please can you also provide a way to damage entities around the arrow on the shot.
Thank you in advance.