Mojira Archive
MC-80458

Unable to test certain item dataTags

You are unable to test for data tags from items that you receive without /give. As an example, I have tested item enchantments. If you use the command

/scoreboard players set @a[score_pickaxe_min=0,score_pickaxe=0] pickaxe 1 {Inventory:[{id:minecraft:diamond_pickaxe,tag:{ench:[{id:32,lvl:1}]}}]} 

, it will set player's score of pickaxe to 1 if it isn't already 1 or higher and if the player is holding a diamond pickaxe in their inventory with the enchantment efficiency 1. This command will output the scoreboard command if I /give myself the diamond pickaxe with the enchantment id and level, but if I enchant a diamond pickaxe inside of the enchantment table and place it in my inventory, it will not register the fact that you have the specified data tags.

Duplicate

M. C.

2015-05-20, 10:55 PM

2016-09-18, 10:54 PM

2016-09-18, 10:54 PM

1

3

Unconfirmed

Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.8.4

-