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.
Just want to see what people could come up with. I can't think of a way to make it less lines.
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}