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

testfor command not picking up items mofified with anvil

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.8.1
    • None
    • Windows 7, Java 7 64 bit
    • Unconfirmed

      When using the command

      /testfor @p {Inventory:[{id:"minecraft:diamond_pickaxe",tag:{ench:[

      {id:32,lvl:5}

      ]}}]}

      which output a redstone signal if a player has a diamond pickaxe with effeciency 5. The command will fail if such a pickaxe was obtained using an anvil and manual enchanting. However, this command will trigger if an identical pickaxe is created using the /give command, namely

      /give @p minecraft:diamond_pickaxe 1 0 {ench:[

      {id:32,lvl:5}

      ]}

      It should be noted that when I later used the /give pick in an anvil (renamed it) and attemted the /testfor command again, it failed.

            Unassigned Unassigned
            theKunz Aaron
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: