PaperMC / PaperMC/Paper

Cancelling PlayerInteractEvent does not prevent breaking blocks at 0, 0, 0

Open
#12,196 3 comments 0 reactions 0 assignees View on GitHub

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
  1. place a block at 0 0 0
  2. cancell PlayerInteractEvent using plugin: @EventHandler public void PlayerInteractEvent(PlayerInteractEvent event) { event.setCancelled(true); }
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.