prevent fall damage if you have a item in your inventory named &a&lCosmic Mace

  • 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 comminuty!

    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!

Python:
on damage:
    if damage cause is fall:
        loop all items in inventory of victim:
            if name of loop-item is "&a&lCosmic Mace":
                cancel event

Not tested.

If skript doesn't give error and code doesn't work, try this:


Python:
on damage:
    send "a" to players
    if damage cause is fall:
        send "a" to players
        loop all items in inventory of victim:
            send "a" to players
            if name of loop-item is "&a&lCosmic Mace":
                send "a" to players
                cancel event

Than send a screenshot of your ingame chat.
 
I tested it there are no errors.

1739862786144.png