I put the command
effect give @a[nbt={Inventory:[{Slot:100b,id:netherite_boots,tag:{Tag:["Custom:26"]}}]}] minecraft:fire_resistance 1 1 true
in a always active repeat command block, as well as giving myself /give @s minecraft:netherite_boots{Custom:26}
, however when I wear the boots it does not give me the effect.
1 Answer
You have the selector NBT syntax wrong. You also need to include minecraft:
in the name of the item. It should be @a[nbt={Inventory:[{Slot:100b,id:"minecraft:netherite_boots",tag:{Custom:26}}]}]
(without the extra Tag:
tag)
-
-
The new one looks somewhat like
effect give @a[nbt={Inventory:[{Slot:100b,id:netherite_boots,tag:{Custom:26}}]}] minecraft:fire_resistance 1 1 true
Jul 22 at 14:08 -
-
Yes! Thank you so much I was trying to make some sort of blazeborn armor and it works now! Jul 22 at 14:10