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

Block States Aren't Working Correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18.10.27 Beta, 1.18.10.26 Beta, 1.18.0.24 Beta, 1.18.0.22 Beta, 1.18.0.20 Beta, 1.17.40.23 Beta, 1.17.40.20 Beta, 1.17.30.24 Beta, 1.17.30.23 Beta, 1.17.30.22 Beta, 1.17.30.21 Beta, 1.17.30.20 Beta, 1.17.11 Hotfix, 1.17.20.22 Beta, 1.17.20.21 Beta, 1.17.10, 1.17.10.23 Beta, 1.17.1 Hotfix, 1.17.10.20 Beta, 1.17.0.58 Beta, 1.17.0.56 Beta, 1.17.0.54 Beta, 1.17.0.52 Beta, 1.17.0.50 Beta, 1.16.230.56 Beta, 1.16.230.54 Beta, 1.16.220, 1.16.230.50 Beta, 1.16.220.52 Beta, 1.16.220.51 Beta, 1.16.220.50 Beta, 1.16.210.61 Beta, 1.16.210.60 Beta, 1.16.210.59 Beta, 1.16.210.58 Beta, 1.16.201 Hotfix, 1.16.210, 1.16.221 Hotfix, 1.17.0, 1.18.2 Hotfix, 1.18.30.33 Preview, 1.18.12 Hotfix, 1.19.20.24 Preview, 1.19.11 Hotfix
    • Confirmed
    • Multiple
    • 528190

      When making a block with custom block states, attempting to use them in places such as commands or feature placement, an error will occur saying the custom block state is not a valid block state.

      We also can't use any vanilla block states except for the direction block state.

      Steps To Reproduce:

      1. Download, install and start a new world with the supplied pack (experimental features and content log on)
      2. When loading the world you'll get an error saying that the vanilla_state block was unable to register engine Block Property
        1. This block is trying to use the vanilla state 'minecraft:pillar_axis' but the only vanilla state that works is 'minecraft:direction'
      3. Give yourself the grunt:direction_state block
      4. Note that placing the block against any surface orients the block as if it were a log
      5. Get another account in the world
      6. The client will only see the block in two directions
        1. Up and Down as this doesn't rely on the minecraft:direction state
        2. One horizontal direction
          1. It's as if clients register the minecraft:direction block state equal to 0 no matter what state the block is actually in
      7. Run the following commands
        /setblock ~ ~ ~ grunt:direction_state ["grunt:directional": 2]
        
        /setblock ~ ~ ~ grunt:direction_state ["directional": 2]
        
        /setblock ~ ~ ~ grunt:direction_state ["direction": 2]
      1. Only the last command will work as custom block states can't be used by commands (with or without the identifier)

      Expected Results:

      • Custom block states can be used in commands and features and we can use more vanilla block states than just direction

      Actual Behavior:

      • Custom block states return errors when used outside of the block itself and using other vanilla block states makes the block fail to load

       

            Gruntastic Gruntastic
            Votes:
            11 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: