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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.19.0.29 Preview, 1.19.0.28 Beta, 1.18.20.28 Preview, 1.18.20.27 Beta, 1.18.20.26 Preview, 1.18.20.25 Beta, 1.18.20.24 Preview, 1.18.20.21 Beta, 1.17.40.21 Beta, 1.17.30.22 Beta, 1.17.11 Hotfix, 1.17.20.23 Beta, 1.17.20.22 Beta, 1.17.20.21 Beta, 1.17.10, 1.17.10.22 Beta, 1.17.10.21 Beta, 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.16.230.52 Beta, 1.16.210.56 Beta, 1.16.210.55 Beta, 1.16.210, 1.16.221 Hotfix, 1.17.0, 1.17.2 Hotfix, 1.17.30, 1.18.2 Hotfix, 1.18.10, 1.18.12 Hotfix, 1.18.30, 1.18.31
    • None
    • Confirmed
    • Multiple
    • 583305

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Aguiles Aguilesgamer
              Votes:
              15 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: