change_target

Is an action that allows you to change the target entity of another entities.


Meaning

Allows you to change the target entity of another entities, like setting the zombie to target the skeleton.


Format
- 'change_target: <entity_uuid>;<target_uuid|target_player_name>'

<entity_uuid> – the entity to change the target for; (MANDATORY)

<target_uuid | target_player_name> – the target itself. (MANDATORY)


Targets

Where is useful

Whenever you need to change the entities targets using built-in actions and not vanilla commands.


Examples
- 'change_target: 434effc1-eefc-434b-be83-b079c002dcf2;b51aba9a-9127-4f63-a401-8f66f4ad96e0' # Set some entity targeting to another entity