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
          2014-05-02_16.21.12.png
          203 kB
        2. 2014-05-02_16.21.16.png
          2014-05-02_16.21.16.png
          212 kB
        3. 2014-05-02_16.21.29.png
          2014-05-02_16.21.29.png
          183 kB
        4. 2014-05-02_16.21.31.png
          2014-05-02_16.21.31.png
          194 kB
        5. 2014-05-02_16.21.36.png
          2014-05-02_16.21.36.png
          312 kB
        6. 2014-05-02_23.07.52.png
          2014-05-02_23.07.52.png
          313 kB
        7. 2014-05-02_23.07.55.png
          2014-05-02_23.07.55.png
          195 kB
        8. 2014-05-02_23.08.03.png
          2014-05-02_23.08.03.png
          308 kB

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

              Created:
              Updated:
              Resolved: