Block States Aren't Working Correctly
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:
- Download, install and start a new world with the supplied pack (experimental features and content log on)
- When loading the world you'll get an error saying that the vanilla_state block was unable to register engine Block Property
- This block is trying to use the vanilla state 'minecraft:pillar_axis' but the only vanilla state that works is 'minecraft:direction'
- Give yourself the grunt:direction_state block
- Note that placing the block against any surface orients the block as if it were a log
- Get another account in the world
- The client will only see the block in two directions
- Up and Down as this doesn't rely on the minecraft:direction state
- One horizontal direction
- It's as if clients register the minecraft:direction block state equal to 0 no matter what state the block is actually in
- Run the following commands
/setblock ~ ~ ~ grunt:direction_state ["grunt:directional": 2] /setblock ~ ~ ~ grunt:direction_state ["directional": 2] /setblock ~ ~ ~ grunt:direction_state ["direction": 2]
- 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
2021-02-04, 06:08 AM
2023-03-12, 01:10 AM
11
5
528190
add-on, block_states, blocks, custom_blocks
1.18.10.27 Beta - 1.19.11 Hotfix
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
-