Making my skript smaller

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

GToTheG

Member
Jan 26, 2017
35
0
8
Anyone can make this skript less lines?
Just want to see what people could come up with. I can't think of a way to make it less lines. :emoji_alien:

Code:
on right click:
    if player is sneaking:
        set {_item} to player's held item
        if {_item} is any chestplate or elytra:
            set {_currentArmor} to player's chestplate
            set player's chestplate to player's held item       
        if {_item} contains "leggings":
            set {_currentArmor} to player's leggings
            set player's leggings to player's held item           
        if {_item} contains "helmet":
            set {_currentArmor} to player's helmet
            set player's helmet to player's held item           
        if {_item} contains "boots":
            set {_currentArmor} to player's boots
            set player's boots to player's held item       
        set player's held item to {_currentArmor}
 
Status
Not open for further replies.