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

Can't use the NBT tags with testforblock to detect items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 13w37b, Minecraft 13w39a, Minecraft 13w39b, Minecraft 13w41a, Minecraft 13w42a, Minecraft 13w42b, Minecraft 13w43a
    • None
    • Confirmed

      /setblock ~0 ~1 ~0 154 0 replace {Items:[:{Count:1,Slot:2,id:35,Damage:15}]}
      

      can spawn a hopper with items inside just fine, however

      /testforblock ~0 ~1 ~0 154 0 {Items:[:{Count:1,Slot:2,id:35,Damage:15}]} 
      

      will return:

      The block at x,y,z did not have the required NBT keys.

            Unassigned Unassigned
            Arahpthos Jack Buckley
            Votes:
            20 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: