Decide which arrow the bow takes away

Discussion in 'Plugin Development' started by MTN, Jan 29, 2014.

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

    MTN

    Hi,
    it is possible to set which arrow a specific bow shoots?
    I want a custom named bow to only shoot with custom named arrows. I know I can check if the arrow is in the inventory, but can't decide which arrow minecraft removes from the inventory, or can I?
    (maybe nms code?)
     
  2. Offline

    AoH_Ruthless

    MTN
    Check if the arrow has a display name, then check if the display name is equal to something specified (if you want it to have a custom display name). If it has that display name, launch the projectile and remove it from the inventory :). You don't need NMS
     
  3. Offline

    Garris0n

  4. Offline

    MTN

    Problem is it will pick the first arrow it finds and removes it, but I can't manipulate the slot it finds, therefore I would have to do a lot of fiddeling, like swapping the normal arrow with the custom one and undo that a tick later for example.

    Oh, yeah, that should be simple. Thanks
     
  5. Offline

    Garris0n

    Oh, so you're trying to change the arrow, not just monitor it. Either cancel the event, select your arrow, and launch it manually, or try to inject a different bow into the server.
     
Thread Status:
Not open for further replies.

Share This Page