[SPIGOT-8001] PlayerInteractEvent doesn't fire when using a Brush over multiple blocks Created: 31/Jan/25  Updated: 09/Mar/25  Resolved: 09/Mar/25

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

Type: Bug Priority: Minor
Reporter: Justin Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Version: This server is running CraftBukkit version 4430-Spigot-d421948-d20d4c1 (MC: 1.21.4) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

If you right-click on a BrushableBlock and hold the click down as the mouse moves from one BrushableBlock to another, if the second block instance has no held items...neither the PlayerInteractEvent nor the BlockDropItemEvent fires. Thus, the PlayerInteractEvent doesn't fire on the interaction with the second block.

 

Repeating the issue:

Click on the first BrushableBlock and start the brush animation, which fires the interact event. Using the same continuous animation as you move across different blocks doesn't register any additional interaction events, despite the brushing animation executing against additional BrushableBlocks.



 Comments   
Comment by md_5 [ 09/Mar/25 ]

I've added BlockBrushEvent which should handle all of this

Comment by Justin [ 02/Feb/25 ]

Few ideas:
BrushCompleteEvent - when a BrushableBlock completes
PlayerBrushUpdateEvent - when the BrushableBlock state is updated (would be fired three times from start to finish for the process)

It’s important that the event triggers early enough so that players have the ability to change the contents of the BrushableBlock which has a visual aspect in-game as brushing a block animates and slowly reveals the item inside the block. Allowing players to change this upon the first click of the block, first update of the block state, etc, is an important consideration.

Comment by md_5 [ 02/Feb/25 ]

I think we need a separate event for this

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