Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6258

No way to associate Projectile and ItemStack from dispenser

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • This server is running CraftBukkit version git-Spigot-a19903d-e1ebdd9 (MC: 1.16.4) (Implementing API version 1.16.4-R0.1-SNAPSHOT)
    • Yes

      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/

            Unassigned Unassigned
            PineTree Ashleigh Jones
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: