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

execute if block does not recognize NBT with containers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 18w19a
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed

      Description

      Place a chest with sandstone in the first slot and issue a repeating command block below it with the following command:

      execute if block ~ ~1 ~ chest{Items:[{Slot:0b,id:"minecraft:sandstone"}]} run say SUCCESS

      The command will not execute if it contains the NBT. This worked in 18w16a

      Note:
      The command does execute if testing for block alone, just not with NBT

      • Tested with Chests and Hoppers

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              qmagnet qmagnet
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: