PaperMC / PaperMC/Paper

PlayerBucketEmptyEvent event is only called for fluid buckets but not for powder snow bucket

Open
#12,239 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs triage
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

PlayerBucketEmptyEvent events should be called for all types of bucket items (water/lava/powder snow) like PlayerBucketFillEvent is.

Observed/Actual behavior

The event isn't called for powder snow buckets.

Steps/models to reproduce
  1. Setup a Paper plugin
  2. Add listeners to the events mentioned above
  3. See that PlayerBucketEmptyEvent isn't called when using powdered snow buckets while the other one is.
Plugin and Datapack List

The server is running plain except my testing plugin adding event listeners to both events.

Paper version

[00:01:34 INFO]: Checking version, please wait...
[00:01:34 INFO]: This server is running Paper version 1.21.4-DEV (2025-03-07T23:01:15Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are running a development version without access to version information
Previous version: 1.21.4-DEV-5538d24 (MC: 1.21.4)

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

Start by tracing where PlayerBucketEmptyEvent is dispatched for fluid buckets and compare it with the PlayerBucketFillEvent handling for powder snow. Reproduce with listeners in a Paper plugin, then verify that using a powder snow bucket invokes PlayerBucketEmptyEvent like the other bucket types.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.