> For the complete documentation index, see [llms.txt](https://kosmx.gitbook.io/emotecraft/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kosmx.gitbook.io/emotecraft/tutorial/section-4-saving-the-emote..md).

# Section 4: Saving the emote

Click to the Export workspace

![](/files/-MDAjeQDSf9r3G1BtByX)

and run script (a standard play button)

{% hint style="danger" %}
Don't edit the script! except if you know, what are you editing
{% endhint %}

{% hint style="warning" %}
If you edit the script, save frequently, Blender is going to crash.
{% endhint %}

It will create an `emote.json` file in the directory, where the blender file is.

If it is in the Minecraft directory, you can check the emote by pressing the debug key. ([Section 2](/emotecraft/tutorial/section-2-the-secret-feature-and-other-useful-things.md))

#### Name the emote

{% tabs %}
{% tab title="Solution 1" %}
On the top of the script edit the variables

![](/files/-MEPOcsNGZbvLtPV07PS)

Don't edit the script below and save frequently.

{% hint style="success" %}
If you want to create loops, set the isLoop value to true and the returnTick to the tick\
where you want to continue the emote after the last tick.
{% endhint %}
{% endtab %}

{% tab title="Solution 2" %}
If it's done, open the file with a text editor like:\
<https://notepad-plus-plus.org/>\
<https://atom.io/>\
but you can open with your default text editor.&#x20;

```
{
    "name": "Emote name",
    "author": "Your name",
    "description": "description",
    "emote":{
        "beginTick":0,
        "endTick":59,
        "stopTick":60,
        "degrees":false,
        "moves":[
            ...
        ]
    }
}
```

Change the name, author and description fields, as you want.
{% endtab %}
{% endtabs %}

{% hint style="success" %}
Can't break line with \n or something else. It won't work.
{% endhint %}

After testing:

rename the emote.json to something else. (What you wish. Doesn't have to be the emote's name.)\
And put it into `.minecraft/emotes` directory. If it doesn't exist, you never launched the mod in that directory.

{% hint style="success" %}
The mod identifies the emotes form the emote's hash. If you edit the emote, you need to reassign the keybinding and fastmenu location.
{% endhint %}

If you want to create an icon for the emote, put a square image with the emote's filename into the emotes folder.

```
waving.json
waving.png
```

{% hint style="success" %}
You can add icons to Quark emotes too with the same rule.
{% endhint %}

{% hint style="success" %}
The image have to be square but doesn't have to be 256 × 256 pixels.\
E.g. You can use the much smaller quark icons.
{% endhint %}

You can create an icon with the latest blender tool by pressing F12 and saving the image.\
You will create an image from the current keyframe.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://kosmx.gitbook.io/emotecraft/tutorial/section-4-saving-the-emote..md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
