| icon | comment-smile |
|---|
Create a folder contents/myemojis/textures/font/emoji/
Inside this folder you have to put your emojis, you should make them 72x72 to make sure they're not too big and they're not pixelated. But you can decide the size you want (only important thing is that height and width is not over 256.
In this example I put an image named contents/myemojis/textures/font/emoji/smile.png.
Create a configuration file, for example contents/myemojis/myconfig.yml (you can name it whatever you want)
{% code title="contents/myemojis/myconfig.yml" %}
info:
namespace: "myemojis"{% endcode %}
Then add your emoji (in this example I made a smile emoji) to the list of font_images, so your file would look like this:
{% code title="contents/myemojis/myconfig.yml" %}
info:
namespace: "myemojis"
font_images:
smile:
permission: 0
show_in_gui: true
path: "font/emoji/smile.png"
scale_ratio: 9
y_position: 8{% endcode %}
scale_ratio is the final height in pixels of the emoji because 72x72 pixels is too big, You'd have to scale it but you can set 9 so Minecraft will handle it automatically.
&#xNAN;y_position is the y position in pixels, 8 should be good if you keep emoji 72x72 and scale_ratio to 9. If you have different size you'll have to tweak the y_position based on your tests.
{% hint style="danger" %}
scale_ratio must ALWAYS be higher than y_position.
I cannot fix that issue, it's a Minecraft limitation.
{% endhint %}
Write /e in chat, press SPACE and press TAB to start autocompleting.
Write : in chat and press TAB to start autocompleting.
{% @github-files/github-code-block %}
%20(3)%20(2).png)
.png)
.png)
.png)
