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

Blockstate matching uses default values for not set properties instead of wildcard

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 17w45b
    • Confirmed

      The bug

      Blockstate matching uses the default values for not set properties instead of allowing any value. This means that for example stone matches only stone[variant=stone]

      How to reproduce

      1. Place granite below you
        /setblock ~ ~-1 ~ stone[variant=granite]
        
      2. Try to test for stone in general
        /execute if block ~ ~-1 ~ stone run say Any stone found
        

        → The message is not displayed, only when changing stone to stone[variant=granite]

            Unassigned Unassigned
            Boomber Boomber
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: