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

Crossbow events

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • 1.14+
    • Yes

      I would like to suggest the addition of some events for the cross bow.

      Event such as loading the crossbow

       

      Why Im suggesting this:

      Im working on a plugin where the player needs to have arrows in their offhand to fire a bow. This works fine for a bow, but the issue is with the cross bow, you need to hold down right click to load the bow. Then let off the clicking. Then right click again to fire. The issue here is the arrow has loaded into the bow, and I no longer have my (1) arrow in my off hand so its cancelling it.

      Im using both the EntityShootBowEvent as well as PlayerInteractEvent to detect these events.

      The issue is now, Im using the interact event to load the bow, but when I try to shoot it, I again have no arrow in my offhand, but I have no way to check whether or not the crossbow already has an arrow loaded.

       

      Thank you for reading!

            Unassigned Unassigned
            ShaneBee Shane Bee
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: