Hello. I want to check if player holding an wooden axe with fake nbt "Fired:1"
There is command i use:
/execute as @a[nbt={SelectedItem:{id:"minecraft:wooden_axe",Fired:1}}] at @s run effect give @s minecraft:regeneration 10 0 true
That's not "fake nbt", it's a custom NBT tag. The full path to your custom tag is Item.tag.Fired but since the item is in the player's inventory, you use this path: tag.Fired because the game knows you can only have items in your inventory so it automatically appends Item to the path.
/execute as @a[nbt={SelectedItem:{id:"minecraft:wooden_axe",tag:{Fired:1}}}] at @s run effect give @s minecraft:regeneration 10 0 true
Hello. I want to check if player holding an wooden axe with fake nbt "Fired:1"
There is command i use:
/execute as @a[nbt={SelectedItem:{id:"minecraft:wooden_axe",Fired:1}}] at @s run effect give @s minecraft:regeneration 10 0 true
That's not "fake nbt", it's a custom NBT tag. The full path to your custom tag is Item.tag.Fired but since the item is in the player's inventory, you use this path: tag.Fired because the game knows you can only have items in your inventory so it automatically appends Item to the path.
Command block engineer // Developer // #TeamTrees
Thanks! It's working now.