Reproduction Steps
Open a world with the following script enabled.
Place a minecraft:white_bed in the world.
Left-click the white bed to break it.
Observe that the bed is not destroyed, but its color changes from white to red.
Minimal Reproduction Scriptimport { world } from "@minecraft/server"; world.beforeEvents.playerBreakBlock.subscribe((event) => { event.cancel = true; });
Observed Results
The block break is cancelled: the bed remains in the world.
However, the bed's block state is reset: white_bed becomes red_bed.
Expected ResultsThe block break should be cancelled.
The existing block state should be preserved exactly as it was before the interaction.
A white bed should remain a white bed.
Thank you for helping us improve Minecraft! We saved your files: