# Totem Command

{% hint style="warning" %}
The item **MUST** be a `TOTEM_OF_UNDYING` to display custom models/textures!
{% endhint %}

### Usage

```yaml
/nexoaddon totem <player> <customModelData|nexoID>
```

### Examples

#### Using CustomModelData

```yaml
/nexoaddon totem PlayerName 1000
```

#### Using Nexo Items

```yaml
/nexoaddon totem PlayerName diamond_totem
```

### Required Item Setup

For custom totems to work, they must be properly configured as `TOTEM_OF_UNDYING` items. Here are example configurations:

#### Nexo Item Configuration

```yaml
diamond_totem:
  material: TOTEM_OF_UNDYING
  Pack:
    parent_model: item/generated
    texture: item/diamond
    custom_model_data: 1000

cool_totem:
  material: TOTEM_OF_UNDYING
  Pack:
    model: my_cool_model
    custom_model_data: 1001
```

{% hint style="info" %}
The animation will only show correctly if:

1. The item is a `TOTEM_OF_UNDYING`
2. The custom model/texture is properly set up in Nexo
   {% endhint %}


---

# 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://nexoaddon.gitbook.io/docs/commands/totemcommand.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.
