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

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 17w45b
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Confirmed

      Description

      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]

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: