Cancelling PlayerInteractEvent does not prevent breaking blocks at 0, 0, 0
Open
Nobody has claimed this yet.
scope: api
status: accepted
version: 1.21.4
- Dominant language
- Java
- Stars
- 12.7k
- Forks
- 3.5k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
Description
Expected behavior
blocks at 0 0 0 will not break
Observed/Actual behavior
blocks at 0 0 0 break, they do not drop item
Steps/models to reproduce
- place a block at 0 0 0
- cancell PlayerInteractEvent using plugin:
@EventHandler public void PlayerInteractEvent(PlayerInteractEvent event) { event.setCancelled(true); } - go in survival mode and try to break block
Plugin and Datapack List
testplugin (what I used for cancelling block event)
Paper version
1.21.4-185-main@0a6e743 (2025-02-26T13:10:43Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
Other
No response
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 files or tests are named. Start by reproducing the issue on Paper 1.21.4-185 with the provided PlayerInteractEvent cancellation plugin, then trace the block-breaking path for coordinates 0, 0, 0. Done means cancelling the event prevents the block from breaking there, with regression coverage for the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100