[SPIGOT-6471] PlayerBucketEmptyEvent called at world height Created: 25/May/21  Updated: 19/Aug/21

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Parker Thornton Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: bug, event

Attachments: Zip Archive TestPlugin.zip    
Version: 3147-Spigot-9472b09-d7ef1e9 (MC: 1.17)
Guidelines Read: Yes

 Description   

The PlayerBucketEmptyEvent is called above max height (256), even though it's not possible to do. BlockPlaceEvent is not called so I assumed this is not intended.

Sample code:

@EventHandler
public void onBucket(PlayerBucketEmptyEvent event) {
System.out.println(event.isCancelled());
System.out.println(event.getBlock());
}

Then go to max height and try placing a water bucket, a client action bar displays "Height limit for building is 256 blocks".

Prints out:

[23:43:19] [Server thread/INFO]: false
[23:43:19] [Server thread/INFO]: CraftBlock{pos=BlockPosition{x=1082, y=256, z=1420},type=VOID_AIR,data=Block{minecraft:void_air},fluid=net.minecraft.server.v1_16_R3.FluidTypeEmpty@f4c0e4e}


 Comments   
Comment by Marvin Rieple [ 19/Aug/21 ]

In vanilla (and spigot) it is possible to empty a bucket in the nether at world height. The water will evaporate and the height limit message will show.

"Fixing" the PlayerBucketEmptyEvent depends if Mojang finds that this is a bug or indented (https://bugs.mojang.com/browse/MC-234835).

Generated at Tue Apr 08 03:01:10 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.