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

minecraft:on_placed block trigger triggers when block states are updated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.20.60.23 Preview, 1.20.51 Hotfix
    • None
    • Unconfirmed
    • Multiple

      In a custom block, when block states are updated using the "set_block_state" event response, the block trigger component "minecraft:on_place" is activted, triggering the attached event.

      How To Reproduce:
      1. Install the addon attached to this issue.

      2. Create a new creative world, being sure to apply the addon to the world and to turn on Holiday Creator Features (Required).
      3. Open the creative inventory and grab bone meal and the test sapling (Last item in the items category with no icon) You could also use /give @s test:saplingtest

      4. Place down the sapling (You should see in chat that on_place was triggered.)

      5. Bone meal the sapling. (You'll see that on_place is triggered yet again when the block state 'test:growth_state' is updated.)

      This is incorrect behavior as the block was not placed down again, yet on_place was still triggered.

      Tested on both minecraft preview 1.60.23 and minecraft 1.20.51.

            Memesat1am Aiden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: