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

Crossbow methods

XMLWordPrintable

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

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

      And maybe some methods (maybe item meta methods) for checking if the crossbow is currently loaded, get the current projectile that is loaded (included a picture for this one), and set a projectile to be loaded into 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:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: