PaperMC / PaperMC/Paper

Sulfur Cube bucketing ignores cancellation PlayerInteractAtEntityEvent

Open
#14,113 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

scope: api status: accepted version: 26.2
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

Sulfur cube doesn't disappear if PlayerInteractAtEntityEvent cancelled, Bucket in player's hand remains empty.

Observed/Actual behavior

Bucket remains empty, sulfur cube no longer exists in the world

Steps/models to reproduce
  1. Install a plugin that has this:
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = false)
public void onPlayerInteractAtEntityEvent(PlayerInteractAtEntityEvent event) {
    event.setCancelled(true);
}

@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = false)
public void onPlayerInteractAtEntityEventMonitor(PlayerInteractAtEntityEvent event) {
    getLogger().info(String.format("PlayerInteractAtEntityEvent %s: %b", event.getRightClicked(), event.isCancelled()));
}

@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = false)
public void onPlayerBucketEntityEvent(PlayerBucketEntityEvent event) {
    getLogger().info(String.format("PlayerBucketEntityEvent %s: %b", event.getEntity(), event.isCancelled()));
}
  1. Start server and spawn some sulfur cubes.
  2. Try to bucket sulfur cube
Plugin and Datapack List
>plugins
ℹ Server Plugins (2):
Bukkit Plugins:
 - LuckPerms, test
>datapack list
There are 3 data pack(s) enabled: [vanilla (built-in)], [file/bukkit (world)], [paper (built-in)]There are 1 data pack(s) available: [file/iframe (world)]
Paper version
>version
Checking version, please wait...
>version
This server is running Paper version 26.2-84-main@26e81c4 (2026-07-26T18:11:33Z) (Implementing API version 26.2.build.84-stable)
You are running the latest version
Previous version: 26.2-63-3a55f62 (MC: 26.2)
Other

Based on discord paper-help discussion, sulfur cube disappears only on client side and would be visible after rejoining server

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

Reproduce the issue with a plugin that cancels PlayerInteractAtEntityEvent, using the listed sulfur-cube and bucket steps while monitoring both events. Trace the interaction and cancellation flow; done means a cancelled interaction leaves the sulfur cube present and the bucket state correct, including after reconnecting.

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
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.