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

playerBreakBlock Event Cancels Chest Renaming

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.21.30
    • None
    • Unconfirmed
    • Windows

      When using the playerBreakBlock event in Minecraft Bedrock's GameTest framework, cancelling the event (event.cancel = true) on a renamed chest causes the chest's custom name to reset, effectively erasing the custom name after the event is canceled.

      • Rename a chest using an anvil.
      • Implement a GameTest script that listens for the playerBreakBlock event on the chest.
      • In the event handler, use event.cancel = true to prevent the chest from breaking.
      • Attempt to break the renamed chest in-game.
      • Check the chest's name after the event is canceled.

            TheEnemiez David
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: