mojira.dev
MCPE-123901

'SetBlock' and 'SetBlockAtPos' events not work with custom block states

Add a custom boolean property and set the block to replace itself with any block (or others) that has this same property (or other) does not work and causes a error

Expected Behavior:
Sets the block with the property given to it

Actual Behavior:
Not set the block and gives the following errors:

[Json][error]-block_definitions | C:/Users/Hp/AppData/Local/Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/development_behavior_packs/Custom Block State | blocks/custom_block.json | cbs:custom_block | events | setBlockEvent | set_block_at_pos | block_type | Invalid state during block parsing: block name cbs:custom_block, state name cbs:texture_property, state type 1.

[Blocks][error]-block_definitions | C:/Users/Hp/AppData/Local/Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/development_behavior_packs/Custom Block State | blocks/custom_block.json | cbs:custom_block | events | setBlockEvent | set_block_at_pos | block_type | SetBlockAtPos cannot accept custom block states.
cbs:custom_block has a custom block state cbs:texture_property which is not allowed.

[Blocks][error]-No block corresponding to string input

Steps to recreate:
-Enable the content log GUI option.
-Install the attached add-on.
-Load a world with the behavior and resource packs applied and receive the above error.
-Give yourself the block using /give @s cbs:custom_block and place it into the world.
-Right click interact with the custom block.
-It does not put the block and gives an error.

Linked issues

Attachments

Comments 0

No comments.

Aguiles

(Unassigned)

583305

Confirmed

Multiple

add-on, block_states, blocks, custom_blocks

1.19.20.22 Preview, 1.19.0.29 Preview, 1.19.0.28 Beta, 1.18.20.28 Preview, 1.18.20.27 Beta, ..., 1.18.10, 1.18.12 Hotfix, 1.18.30, 1.18.31, 1.19.10

Retrieved