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

NBT datatag for items in chest not accepted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.7.2
    • Windows 8
    • Unconfirmed
    • Creative

      What was supposed to happen was a command block was going to testforblock a chest with a piece of cobblestone in slot 0b called "test"

      What happened was that the command block didn't accept the datatag and came up with the error "The block at -764,32,462 did not have the required NBT keys."
      Describe what happened here

      Steps to Reproduce:
      1. place a command block with a chest facing north on top of it
      2. type the command

      testforblock ~ ~1 ~ minecraft:chest 2 {Items:[0:{Slot:0b,id:4s,Count:1b,Damage:0s,tag:{display:{Name:"test"}}}]}

      into the command block
      3. rename a piece of cobblestone to "test" using an anvil or the /give command
      4. place it in the top left-hand corner of the chest
      5. put a comparator sticking outof the command block
      5. place a button on the command block and press it
      6. check the command blocks previous output
      8. the command will be "The block at ...,...,... did not have the required NBT keys."

        1. 1. anvil.png
          416 kB
          Kyno50
        2. 2. device.png
          522 kB
          Kyno50
        3. 3. chest.png
          376 kB
          Kyno50
        4. 4. command ready.png
          377 kB
          Kyno50
        5. 5. command output.png
          385 kB
          Kyno50

            Unassigned Unassigned
            Kyno50 Kyno50
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: