mojira.dev
MCPE-177724

minecraft:on_placed block trigger triggers when block states are updated

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.

Linked issues

Attachments

Comments 1

Thank you for your report!
We're tracking this issue in MCPE-126423, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

Aiden

(Unassigned)

Unconfirmed

Multiple

Windows 11

1.20.60.23 Preview, 1.20.51 Hotfix

Retrieved