Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-80458

Unable to test certain item dataTags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.8.4
    • None
    • Unconfirmed

      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.

            Unassigned Unassigned
            BossCrafter2018 M. C.
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: