My skript works but when you try to hold over 1 in your hand it doesn't redeem but if you have 1 in your hand it redeems, please help.
Thanks - brsko.
Code:
on right click:
if player is holding red dye named "&csᴛʀᴇɴɢᴛʜ &7(ʀɪɢʜᴛ ᴄʟɪᴄᴋ)" with lore "&cThis gives +1 attack damage, right click to reddem, you must be below +5 attack damage for this to work.":
if {strength::%player's uuid%} is 5:
send "{@prefix} &cYou already are at the maximum amount of strength." to player
else:
add 1 to {strength::%player's uuid%}
send "{@prefix} &cYou have redeemed &4+1 &cattack damage." to player
remove 1 red dye named "&csᴛʀᴇɴɢᴛʜ &7(ʀɪɢʜᴛ ᴄʟɪᴄᴋ)" with lore "&cThis gives +1 attack damage, right click to reddem, you must be below +5 attack damage for this to work." from player