Mob AI

Discussion in 'Spigot Plugin Development' started by The_AxeMaster, Feb 13, 2017.

  1. So I disabled the Mob AI from a guardian to make it not move, but how do I still keep it targeting the player?

    If you need the code I will put it here​
  2. MiniDigger


    you might need to cancel the target event.
    sadly, not all actions of entities are bound to the AI toggle...
  3. Alright, but is there a way to keep the entity from moving but still have targeting?
    Because I'm trying to make an entity (Guardian) appear, fire its laser and then despawn.
    • Like Like x 1
  4. MiniDigger


    oh wait, I completely read your question wrong.
    I thought you disabled ai and it was still targeting :D
    if you don't want it so move you might be able to just give it a slowness effect, thats usually the easiest way.
  5. Im trying to make it float in the air.
    • Like Like x 1