Adding an arrow to an bow

Discussion in 'Bukkit Help' started by hopstar, Jun 2, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    hopstar

    Im trying to add something to my plugin that allows you to fire an arrow from a bow (wihout an arrow in your inventory) as close to normal shoot event:

    Things i tried:
    - Storing slot 9 of the inventory and setthing then an arrow, When player opens the inventory the stored item get placed back (didn't work, InventoryOpenEvent doesn't get called)
    - Looked into packets. (i tried some stuff with this but im not good with packets)
    - Adding an arrow on PlayerInteractEvent to the inventory. Takes one tick before working.

    Any tips?
     
  2. Offline

    Cybermaxke

    I have done this before using packets, just sending a set item packet with an arrow item in it on slot 9 or something like that so it is invisible.
     
Thread Status:
Not open for further replies.

Share This Page