Solved Make A Phantom Target A Player

Discussion in 'Spigot Plugin Development' started by Hibbix, Oct 4, 2018.

  1. Hello! Is it possible to make a phantom try to attack a player, even though they have slept?

    Thanks :)
     
    • Agree Agree x 2
    • Winner Winner x 1
  2. I've never used any of the APIs beyond 1.8.8, but I know that for every creature there's a .setTarget() method.
    If the Phantom class extends the Creature class - You're good :)
     
    • Agree Agree x 1
    • Winner Winner x 1
  3. Use .setTarget(LivingEntity) or you can use NMS to make them target a player
     
    • Like Like x 1