[SPIGOT-6351] Placing fluids out of reach Created: 08/Feb/21  Updated: 09/Feb/21

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

Type: Bug Priority: Minor
Reporter: Daniel Scherf Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: 1.16.5, bug, spigot

Attachments: File Video description.mp4    
Version: CraftBukkit version 3007-Spigot-cd23533-a82b212 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

Players are able to place water and lava, despite the fact that the block should be out of reach and has no gray box like when it's targeted. Also, the PlayerInteractEvent is called but PlayerInteractEvent#getAction() returns Action.RIGHT_CLICKED_AIR, although the expected result would be Action.RIGHT_CLICKED_BLOCK. This is not normal Minecraft Vanilla behavior.



 Comments   
Comment by Daniel Scherf [ 09/Feb/21 ]

That's still unexpected API behavior and can cause plugins who trust that this event will always be called for all block interactions to fail.

Comment by Black Hole [ 08/Feb/21 ]

The PlayerBucketEmptyEvent gets called anyway.

Comment by Daniel Scherf [ 08/Feb/21 ]

I also tested this in singleplayer, but in creative mode. You are right, this looks like a Minecraft bug. Spigot should still fix it because this unexpected behavior can cause a lot of problems.

Comment by blablubbabc [ 08/Feb/21 ]

Also applies to other interactable items, like for example spawn eggs.
Edit: Nevermind, this does not apply in the same way to spawn eggs (mob is not spawned, whereas water is placed). I do however get both a RIGHT_CLICK_AIR and a LEFT_CLICK_AIR (for the hand swing animation) in the spawn egg case, whereas I do not get this additional LEFT_CLICK_AIR event when right clicking into AIR regulary with the spawn egg (only when targetting a block slightly outside the interaction range). But this might indicate some vanilla oddity here.

Also, this behavior (for both the water bucket and the spawn egg) can be observed in survival mode, but not in creative mode.

Edit: Actually, I just tested this in single player and I am able to reproduce this behavior (water placement) there. So this might be a vanilla issue.

Generated at Wed Apr 02 10:50:39 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.