mojira.dev
MCPE-240366

playerBreakBlock event in the Bedrock APIs

world.beforeEvents.playerBreakBlock.subscribe((e) => {

    e.cancel = true
})

When you create an add-on and use this code, it normally prevents you from destroying blocks or removing items from item frames. However, if you try to remove an item from an item frame while in Survival mode with this script active, it suddenly works.

Comments 2

We do not have enough information to reproduce this issue.

Please include the following information to help us understand your problem:

Steps to Reproduce:
1. (Explain what needs to be done for the issue to happen)
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

Please also attach any needed commands, add-ons/behavior packs, data packs, resource packs, screenshots, videos, or worlds needed to help reproduce this issue.

Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

When you create an add-on and use this code, it normally prevents you from destroying blocks or removing items from item frames. However, if you try to remove an item from an item frame while in Survival mode with this script active, it suddenly works.

JuliosStefen

(Unassigned)

Unconfirmed

Windows

Windows 11

26.32

Retrieved