is setTarget(LivingEntity) broken?

Discussion in 'Plugin Development' started by iliasdewachter, May 12, 2013.

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


    Simple question: is setTarget(LivingEntity) broken?
  2. Offline


    Simple answer: yes!

    Since the new pathfinding AI, the setTarget() method does no longer work in most situations.
    There are some mobs which still don't use the new pathfinding (Pigzombies and Blazes(?) I believe.).
    But most of them do.
    From what I can say, changing the target of an entity that has already targeted something is very unlikely to work.
    I don't know how to manipulate the target of an entity reliably now.

    Using a creatures "navigation" to get it to go somewhere seems to be possible. But things like "don't attack that entity anymore" or "follow that player" are a problem now.
  3. Offline


    Yeah, you're right, pigzombie does work, thanks :p

    When should this be fixed?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jun 1, 2016
Thread Status:
Not open for further replies.

Share This Page