[SPIGOT-6258] No way to associate Projectile and ItemStack from dispenser Created: 29/Nov/20  Updated: 27/Dec/20

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

Type: New Feature Priority: Minor
Reporter: Ashleigh Jones Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: event

Version: This server is running CraftBukkit version git-Spigot-a19903d-e1ebdd9 (MC: 1.16.4) (Implementing API version 1.16.4-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

There is no event for dispensers that returns both the Projectile (Arrow, Snowball, Potion, etc) and ItemStack associated with it. Each can be individually gotten through BlockDispenseEvent (for the ItemStack) and ProjectileLaunchEvent (for the Projectile) but never both at the same time. This makes some plugins like mine that rely on such things impossible without using NMS.

If a small addition could be made to either event that could add the ability, for example, to associate a shot arrow Projectile from a dispenser and an ItemStack that it originated from I'm sure many plugin developers would be very grateful.

This question from five years ago also covers the issue. https://www.spigotmc.org/threads/blockdispenseentityevent.105512/



 Comments   
Comment by Black Hole [ 30/Nov/20 ]

Related to SPIGOT-5313

Generated at Sat Apr 05 09:53:25 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.