A crossbow reloading event?

Discussion in 'Plugin Development' started by Grauly_, Oct 26, 2020.

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

    Grauly_

    As the title says, is there a dedicated crossbow reloading event? (could not find one so far) If there is none, is there a workaround that i can get the following options:
    - the arrow / rocket ItemStack currently being loaded into the crossbow and the possibility to set them
    - the crossbow ItemStack itself
    - the Entity reloading it
    - cancelability of loading process
    - trigger at the beginning and the ending of the loading process (possibly as different Events)

    Any help would be greatly appreciated!
     
  2. Offline

    Kars

    Not sure if that is handled client side or not, but you can just use item interact event.
     
  3. Offline

    Grauly_

    Looks like there is no way to do what i wanted to do, the closest thing to any crossbow related stuff is CrossbowMeta - but even that does not contain any information about the current draw of the Crossbow. The only way i can think of rn is to look into the nbt data of the crossbow, but that would (as far as i know) need NMS which i want to avoid.
     
  4. Offline

    Kars

Thread Status:
Not open for further replies.

Share This Page