> 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

If you want to see it in Minecraft:

Click to the Export workspace

![](https://622095298-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MCsXAvFp--ynyL6uUXp%2F-MDAiM6hkB7r2YJiuNkC%2F-MDAjeQDSf9r3G1BtByX%2Fimage.png?alt=media\&token=1b5e68d9-bd4b-4611-b77d-ed2e6bd32099)

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

![](https://622095298-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MCsXAvFp--ynyL6uUXp%2F-MEPLwpKCSda1jSRxQD6%2F-MEPOcsNGZbvLtPV07PS%2Fimage.png?alt=media\&token=5b0ee630-67a1-43ad-8249-0fd427f3721c)

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.
