change_AI

Is an action that allows you to change the artificial intelligence of the entities.


Meaning

If you turn off an entity's AI, it will not interact with the world in any way, but will still be susceptible to damage.


Format
- 'change_AI: <entity_uuid|player_name>;<true|false>'

<entity_uuid | player_name> – the target to change the AI; (MANDATORY)

<true|false> – whether to enable or disable the AI. (MANDATORY)


Targets
  • Players (this is possible, but players are not affected by AI for real).


Where is useful

For example, if you are creating some sort of challenge or mini game where the player is defending against enemy mobs, and the player has the ability to “freeze” certain mobs.


Examples
- 'change_AI: 9926220f-475c-43b4-870a-024a1f6b7bed;false' # Disable the AI of some entity