# Entity Goals

You can customize entities brain by using goals.

### Note

`clear_all` is used to clear every base goal in the vanilla entity.\
`replace_vanilla` is used to clear any base goal of the same type in the vanilla entity.

### Example

```yaml
entities:
  happy_creeper:
    model_folder: entity/happy_creeper
    type: ZOMBIE
    can_sun_burn: false
    eyes_height: 0.1
    goals:
      clear_all: true
      move_to_block:
        priority: 7
        blocks:
        - POPPY
      attack_near:
        priority: 8
        entity: CREEPER
      look_at_entity:
        priority: 8
        entity: PLAYER
      melee_attack:
        priority: 10
        enabled: true
      random_teleport_timed:
        min_delay: 60
        max_delay: 100
      random_teleport_on_hit:
        check_visibility: false
        chance: 100
      hurt_by_target:
        enabled: true
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://itemsadder.devs.beer/adding-content/entities/entity-goals.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
