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

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Platform:
      Multiple
    • ADO:
      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

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

                Dates

                Created:
                Updated:
                CHK: