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

# change\_target

***

<details>

<summary>Meaning</summary>

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

</details>

***

<details>

<summary>Format</summary>

```yaml
- 'change_target: <entity_uuid>;<target_uuid|target_player_name>'
```

<mark style="color:orange;">\<entity\_uuid></mark> – the entity to change the target for; <sup><sub><mark style="color:red;">(MANDATORY)<mark style="color:red;"><sub></sup>

<mark style="color:orange;">\<target\_uuid | target\_player\_name></mark> – the target itself. <sup><sub><mark style="color:red;">(MANDATORY)<mark style="color:red;"><sub></sup>

</details>

***

<details>

<summary>Targets</summary>

* [Mobs](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Mob.html).

</details>

***

<details>

<summary>Where is useful</summary>

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

</details>

***

<details>

<summary>Examples</summary>

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

</details>

***
