Hello!
I want to create a gun for my server and I want to use black head-like with armor stands as a projectile that it shoots and does damage and explodes if hits an entity or a block with a cooldown. I tried doing it with wither skulls but wither skulls doesn't work well. here is the wither skull skript.
I want to create a gun for my server and I want to use black head-like with armor stands as a projectile that it shoots and does damage and explodes if hits an entity or a block with a cooldown. I tried doing it with wither skulls but wither skulls doesn't work well. here is the wither skull skript.
Code:
on right click with netherite hoe:
if name of player's held item is "&0&lBlack Quartz Scythe":
set {Black Quartz Scythe.bullets.%player%} to 1
shoot wither skull from the player at speed 1
push last shot wither skull upwards with speed 0.06
on damage:
if event-projectile is wither skull:
{Black Quartz Scythe.bullets.%shooter%} is 1:
damage victim by 8
on projectile hit:
wait 3 ticks
if event-projectile is an wither skull:
create a safe explosion of force 3 at event-location