Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-187016

Flattened IDs retain block states from the unflattened ID that should have been removed

XMLWordPrintable

    • Community Consensus
    • Multiple

      The developers retained the ability to use the unflattened IDs for backwards compatibility. However, this seems to have been implemented incorrectly, resulting in the new flattened IDs retaining the old block states, including in flattened IDs that do not share the same name as an unflattened ID, although they do not show up in autocomplete unless the property is typed in. (e.g. the "color" block state being retained in purple_wool).

      For example, one can type in /setblock ~ ~ ~ purple_wool ["color"="black"], which would result in the game placing black wool. (It places it with the correct ID for black wool, black_wool (as shown by /testforblock [x y z] purple_wool), but this should not be possible in the first place.)

      In addition, testing any flattened block with the /testforblock command also has this issue. Using the black wool example again, /testforblock [x y z] purple_wool ["color"="black"] on Black Wool will return that the block has been found, even if it is normally placed black wool.

        1. blockstate-command.png
          227 kB
          VoicefulBread66
        2. blockstate-command-2.png
          191 kB
          VoicefulBread66

            VoicefulBread66 VoicefulBread66
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: