When checking pre-existing NBT data, you must specify data as it's saved. For the "Slot" tag, its datatype is byte so you append the value with a "b". For the "id" tag, it gets saved with the namespace (defaulting to "minecraft"):
/scoreboard players add @a fthagearmor 1 {Inventory:[{Slot:100b,id:"minecraft:golden_boots",tag:{display:{Name:"Fourth Age Boots"}}}]}
As of now I have a lot of projects I'm working on but the one I can't get to work right now is something as simple as armor recognition.
I'm trying to run this command, it should add any player with gold boots named "Fourth Age Boots" to the objective 'fthagearmor'.
/scoreboard players add @a fthagearmor 1 {Inventory:[{Slot:100,id:"golden_boots",tag:{display:{Name:"Fourth Age Boots"}}}]}
What must I do to convince MC to work again? I literally used this type of command not even an hour ago and it worked smoothly.
--Northie
When checking pre-existing NBT data, you must specify data as it's saved. For the "Slot" tag, its datatype is byte so you append the value with a "b". For the "id" tag, it gets saved with the namespace (defaulting to "minecraft"):
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
I KNEW I was missing a 'b' in there somewhere! Thanks.
--Northie