BlockBreakEvent missfires when player in adventure mode switches item in a last tick
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 12.7k
- Forks
- 3.5k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
Description
Expected behavior
BlockBreakEvent should be cancelled if block wasn't actually broken.
Observed/Actual behavior
BlockBreakEvent fires when player in adventure mode switches item in a last tick while breaking a block,
https://github.com/user-attachments/assets/dd7e0bb2-4c37-4b77-b2eb-20a838959ff0
look in the chat
Steps/models to reproduce
- Set gamemode to Adventure
- /give @p minecraft:wooden_shovel[can_break={blocks:["minecraft:sand"]}] 1
- Start breaking a sand and press F on a last tick
Plugin and Datapack List
none
Paper version
This server is running Paper version 26.1.2-74-ver/26.1.2@e4e17fc (2026-07-06T16:51:09Z) (Implementing API version 26.1.2.build.74-stable)
Other
Any chance of backporting the fix to 1.21.11? 👉👈
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is identified in the report. First reproduce the Adventure-mode scenario with the listed command and item switch, then trace the block-breaking event path; done means the event is cancelled when the block is not actually broken and the reproduction no longer reports a fired event.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100