Ive been going at this problem for hours now, and I still have yet a clue whats wrong. I am on 1.20.6 with skbee and skellet and this code does not give me any erors at all.
What im trying to do is just test an update system where it detects if a player has an item in their inventory that needs an update. Please note that I have to keep the pickaxe as a global variable for references in future skripts. Thank you
Code:
on load:
#pickaxes
set {tool::starterPickaxe} to an iron pickaxe with name "&aStarter Pickaxe"
set line 1 of lore of {tool::starterPickaxe} to "&5It's nat good, but it will get you there"
set int tag "StarterPickVer" of nbt of {tool::starterPickaxe} to 1
command /testgive:
trigger:
give {clone::tool::starterPickaxe} to player
command /testupd:
trigger:
loop all players:
send "looping you" to loop-player
loop items in loop-player's inventory:
send "%loop-item%" to loop-player
set {_nbt} to nbt of loop-item
if {_nbt} has tag "StarterPickVer":
send "custom pick detected!" to loop-player