How to turn off metadata for a fireball explosion?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Lunar_Ghosty

Member
Dec 11, 2022
2
0
1
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
 
Status
Not open for further replies.