Making not hostile entityes attacking

Discussion in 'Spigot Plugin Development' started by GABBOGA99, Aug 13, 2015.

  1. how can I make sure that the entities' not hostile attack the player? (sorre fr my english i'm italian)
  2. joehot200


    Get the EntityTargetEvent and cancel it.
  3. Example: I want to create a pig thats attack the player How can i do this? by cancelling the EntityTargetEvent? wtf?
  4. joehot200


    Your original question asked about the exact opposite.

    You cannot make a non-hostile entity attack something. You need to write your own AI for it.