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

OnPlace custom component doesn't seem to work with blocks placed by scripts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.21.21 Hotfix
    • Unconfirmed
    • Windows

      When a block that has an OnPlace event is placed by a script, the OnPlace event is not executed, this affects any chain placement that a block has, or any slightly complicated placement, OnPlace does seem to work correctly if commands are used.

      When I mean placed by script, I mean when you use: block.above().setPermutation(block.above().permutation.withState(state, stateValue));

      Any block placed this way will not correctly execute its OnPlace event.

      Here I leave a Onedrive link with some videos of how it worked in 1.21.10, and another in 1.21.21 (now): Minecraft Bug Showcase

            N3arb3ar N3arb3ar
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: