I'm trying to figure out how to add the metadata to turn off fireball explosions, but I don't know how to change metadata for this stuff because I'm very new to Skript. Here's my code, all help appreciated!
Code:
on join:
set {midas-scythe-timestamp::%player's uuid%} to now
set projectile metadata value "safe"
on right click:
if name of player's tool is "&1Midas' &4& Scythe":
if difference between now and {midas-scythe-timestamp::%player's uuid%} is less than 3 seconds:
message "&fAbility on cooldown for 3 seconds"
else:
make the player shoot a fireball at speed 3
set {midas-scythe-timestamp::%player's uuid%} to now
on explosion:
projectile has metadata value "safe"
cancel event
command /scythe:
trigger:
set {_item} to golden hoe named "&1Midas' &4& Scythe"
set lore of {_item} to "&7Right click to send a fireball from the Scythe's blade"
set int tag "WeaponDamage" of nbt compound of {item} to 25
give {_item} to player