I have the command /give @p minecraft:nether_star{Tags:["catalyst"],Enchantments:[{id:"minecraft:channeling",lvl:1}],display:{Name:"{\"text\":\"Catalyst\",\"color\":\"yellow\"}"}} 1
, which works predictably and gives me a nether star correctly named, colored, and enchanted.
However, when I run /execute as @e[tag=catalyst] run say hi
with the nether star on the ground it doesn't say anything. Furthermore, when I run /execute as @e[type=item] run tag @s list
I get 'Nether star has no tags". What am I doing wrong to not be able to select the star based on it's scoreboard tag?
Tags:[]
nbt at all, so there is nothing to be found there. Same with the player.dat format wiki. The tags section of the scoreboard wiki doesn't mention anything regarding items except that "Scoreboard tags are a simple list of single-word strings stored directly in the Tags data tag of an entity." I assumed that the fact that I could give a player an item with a scoreboard tag (throughTags:[]
) meant it must apply to the item entity. I apologize for the mistake, although I do think three downvotes and a chiding comment are a bit harsh.@e
for items in inventories. The item entity part of "chunk format" does mention tags, in the section of tags that apply to all entities.Tags:[]
nbt of "catalyst". Tag meaning nottag:{}
the nbt but the scoreboard tag, which the chunk format does not mention. I expected to be able to select the item, when thrown onto the ground, with this tag and @e, because it would be an entity with the tag "catalyst". Obviously this is incorrect, but raises the question of why you can/give
a player an item with a scoreboard tag.Tags
NBT tag just does nothing for items in inventories, it gets deleted instantly. You could have just as well written "{bla:blubb}
", it would do the same: Nothing.