How can i make this work?
Code:
set {kit} to "name"
set {gearQuality} to "diamond"
set {protection} to 1
set {looptimes} to 0
loop 4 times:
add 1 to {looptimes}
if {looptimes} is 1:
set {piece} to "%{gearQuality}% helmet"
else if {looptimes} is 2:
set {piece} to "%{gearQuality}% chestplate"
else if {looptimes} is 3:
set {piece} to "%{gearQuality}% leggings"
else if {looptimes} is 4:
set {piece} to "%{gearQuality}% boots"
if player is not wearing {piece}:
if {protection} is 0:
equip player with {piece} named "%{kit}%"
else:
equip player with {piece} of protection {protection} named "%{kit}%"
else:
if {protection} is 0:
give {piece} named "%{kit}%" to the player
else:
give {piece} of protection {protection} named "%{kit}%" to the player
Last edited: