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?
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.