mojira.dev
MC-121826

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

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]

Linked issues

Comments 1

Made the report more generic, I hope you are fine with that.

Boomber

(Unassigned)

Confirmed

blockstate

Minecraft 17w45b

Retrieved