Solved Setting the target of an eye of ender

Discussion in 'Spigot Plugin Development' started by konsolas, Jan 18, 2020.

  1. konsolas


    When players use eyes of ender, they fly into the air and towards the nearest stronghold.

    How can I change their target while preserving everything else about their behaviour? (e.g. dropping as items again, occasionally exploding, moving in a straight line).
  2. You should try to cancel the ProjectileLaunchEvent for the EnderPearl. Then check for right clicks with an ender pearl equipped in the PlayerInteractEvent and implement your new functionality there.
  3. You should read the question
    You could decompile this plugin to see how it does it
    Edit: with a quick look at the javadoc I found this method
    #3 robertlit, Jan 18, 2020
    Last edited: Jan 18, 2020
    • Like Like x 2
  4. konsolas