So the code below is meant to check if the player is wearing the correct armor (which is does properly) then again check if the player is still wearing that armor every 5 seconds (just for testing purposes for now) the problem is that it does detect that the player has taken the armor of. The only solution I have come up with is checking to see if the player equips a new set (which I dont want at all). So any help is greatly appreciated! thanks!
And I cant use on equip because I am on minehut and physically cant get the correct skript addons.
And I cant use on equip because I am on minehut and physically cant get the correct skript addons.
command /set:
description: check for player set
trigger:
loop slots (integers from 36 to 39) of player's inventory:
if loop-value is any leather armor:
if lore of loop-value starts with "&e[&fCommon&e]":
add 1 to {_set1}
while {_set1} = 4:
send "test"
wait 5 seconds
loop slots (integers from 36 to 39) of player's inventory:
broadcast "%loop-value%"
if slots (integers from 36 to 39) of player's inventory are empty": #this is the problem line, the skript is loading with no errors but it is not stopping the loop when I take the armor off.
remove 4 from {_set1}
send "removing"
if {_set1} is less than 4:
send "stop"
stop loop
description: check for player set
trigger:
loop slots (integers from 36 to 39) of player's inventory:
if loop-value is any leather armor:
if lore of loop-value starts with "&e[&fCommon&e]":
add 1 to {_set1}
while {_set1} = 4:
send "test"
wait 5 seconds
loop slots (integers from 36 to 39) of player's inventory:
broadcast "%loop-value%"
if slots (integers from 36 to 39) of player's inventory are empty": #this is the problem line, the skript is loading with no errors but it is not stopping the loop when I take the armor off.
remove 4 from {_set1}
send "removing"
if {_set1} is less than 4:
send "stop"
stop loop