Solved Ride enderpearl

Discussion in 'Spigot Plugin Development' started by MaTaMoR_, May 16, 2016.

  1. Hi, im trying to ride an enderpearl, i have done it back then in 1.7 and it worked fine but now im trying to do it and it looks buggy as hell, if just doing enderpearl.setPassenget(player); on ProjectileLaunchEvent, idk what i might be doing wrong.
     
  2. You could supply the code you're using :p

    Are you using Player.spigot().setCollidesWithEntities(false) ?
     
  3. I tried but it doesn't work.
     
  4. Hey, I found the solution in a thread I made a while back. The key is to cancel the PlayerInteractEvent, and spawn your own pearl.

    Link to my thread.
     
  5. I was using ProjectileLaunchEvent, ill try with that.
     
  6. I tried the same thing originally, but it didn't work. I would just stick with PlayerInteractEvent to spawn your own. Tell me how it goes :)
     
  7. Yeah it worked, but after all i removed it, you can go throught walls and stuff like that.
     
  8. Yeah, that's true, but that's why ProjectileHitEvent is a thing ;) Anyways, hope I helped.
     
  9. Of course i have tried many things, but the enderpearls goes throught the blocks, i have a World with a glass sphere and it just goes throught it.