Get exp bottle location?

Discussion in 'Plugin Development' started by TigerHix, Aug 8, 2013.

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

    TigerHix

    How to get an exp bottle location after it's hit on the ground?
     
  2. TigerHix
    I think exp bottle counts as a projectile, therefore you should be able to use ProjectileHitEvent.
     
  3. Offline

    chasechocolate

  4. Offline

    TigerHix

  5. Offline

    Plo124

    Code:java
    1. @EventHandler
    2. public void expBottleSplash(ProjectileHitEvent e){
    3. if (e.getEntity() instanceof ExpBottle){
    4. // Code to run
    5. }
    6. }


    Maybe try that :)
    I'm not that good with code, so I probably made a mistake
     
Thread Status:
Not open for further replies.

Share This Page