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
you might need to cancel the target event. sadly, not all actions of entities are bound to the AI toggle...
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.
oh wait, I completely read your question wrong. I thought you disabled ai and it was still targeting if you don't want it so move you might be able to just give it a slowness effect, thats usually the easiest way.