Solved Leather cap removes effect poison

  • 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.

zokiV

New Member
Apr 21, 2022
5
0
1
Hello!
I am a bit new to the Skript plugin, and I am looking on how i can make a Leather cap remove the effect poison when its put on, but as soon as the player does not have the leather cap, they get poison for 1000 seconds.

Thanks!
 
Code:
on armor equip:
    if event-item is a leather helmet:
        remove poison from player

on armor unequip:
    if event-item is a leather helmet:
        apply potion of poison of tier 1 to player for 999 years
 
Hello! Thanks for reaching out.
For me it says that there are 2 Problems that it encountered.
It was the on armor unequip and on armor equip
Do i need some type of extension for this skript to work?
 
Alr, ill go get it.
Thank you very much! :emoji_slight_smile:
[doublepost=1650555726,1650555307][/doublepost]
It's SharpSK, I thought it was vanilla skript but turns out it wasn't
How exactly can i get SharpSK? Can i get the link of it?
 
Status
Not open for further replies.