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

testforblock can't detect Items in blocks with inventories

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.12.1
    • None
    • V: 1.12.1
      Java: 1.8.0_25
      OS: Windows 10
    • Unconfirmed

      Was trying to use testforblock to check for certain items in a dispenser but is not working as intended.

      command: /testforblock ~ ~-1 ~ minecraft:dispenser 1 {Items:[

      {Slot:0b,Count:1b,id:minecraft:stone,Damage:0s}

      ]} => result: Data tag parsing failed: Expected '}' but got ':' at id:minecraft: <-- [HERE]

      command: /testforblock ~ ~-1 ~ minecraft:dispenser 1 {Items:[

      {Slot:0b,Count:1b,minecraft:stone,Damage:0s}

      ]} => result: The block at X Y Z did not have required NBT keys

      tested the same command in 1.11.2 and works without issue.

        1. 2017-08-13_14.13.32.png
          143 kB
          Raymond Michael Kruse
        2. 2017-08-13_14.14.20.png
          156 kB
          Raymond Michael Kruse

            Unassigned Unassigned
            ruinedme Raymond Michael Kruse
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: