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

Testfor named item changes item

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 14w18b
    • None
    • Java 7 x64, Windows 8
    • Unconfirmed

      What happened was, I have two named items called "Keycard," and when I used the tesfor command, one item turned into the other.

      Steps to Replicate:
      1) Get an iron hoe and a blaze rod and name them "Keycard."
      2) Place down a command block and enter the command,

      testfor @p {SelectedItemSlot:0,Inventory:[{Slot:0b,tag:{display:{Name:"Keycard"}}}]}

      and attach a button to it.
      3) Drag one of the "Keycard" items into the first slot and click the button.
      4) Scroll away from the item and click the button again to reset it.
      5) Drag the second "Keycard" Item into the first slot and click the button again
      6) The second item will turn into the first item, still named "Keycard".

        1. 2014-05-02_16.21.12.png
          203 kB
          Ryan Smith
        2. 2014-05-02_16.21.16.png
          212 kB
          Ryan Smith
        3. 2014-05-02_16.21.29.png
          183 kB
          Ryan Smith
        4. 2014-05-02_16.21.31.png
          194 kB
          Ryan Smith
        5. 2014-05-02_16.21.36.png
          312 kB
          Ryan Smith
        6. 2014-05-02_23.07.52.png
          313 kB
          Kumasasa
        7. 2014-05-02_23.07.55.png
          195 kB
          Kumasasa
        8. 2014-05-02_23.08.03.png
          308 kB
          Kumasasa

            Unassigned Unassigned
            Winter_Snake Ryan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: