[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: 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 |