Commit 23b7aad6 by Jonathan Thomas

New Step-by-Step **Icon** Tutorial, including lots of example images.

parent 16869b02
Pipeline #13264 passed with stages
in 2 minutes 12 seconds
......@@ -8,6 +8,7 @@ All notable changes to **CreatureChat** are documented in this file. The format
### Added
- Player Icons (custom art embedded in player skin)
- New Step-by-Step **Icon** Tutorial: [ICON.md](ICONS.md)
- New mixin to extend PlayerSkinTexture to make a copy of the NativeImage + pixel toggle to enable
- Improved LLM Unit tests (to prevent rate limit issues from certain providers when running all tests)
- Check friendship direction (+ or -) in LLM unit tests (to verify friendship direction is output correctly)
......
# Icons for CreatureChat
<img src="src/main/resources/assets/creaturechat/screenshots/custom-player-icon1.png" width="100%" style="image-rendering: pixelated;">
Customize entity and player icons in **CreatureChat** by following this step-by-step guide.
---
## **Custom Entity Icons**
<img src="src/main/resources/assets/creaturechat/textures/entity/pig/pig.png" width="512" style="image-rendering: pixelated;">
### Folder Structure:
To add custom icons for entities, place the icon files in the following path:
```
/main/resources/assets/creaturechat/textures/entity/pig/pig.png
/main/resources/assets/creaturechat/textures/entity/cat/black.png
/main/resources/assets/creaturechat/textures/entity/alligator.png
/main/resources/assets/creaturechat/textures/entity/YOUR-ENTITY.png
...
```
- Entity icons should be `32x32` pixels, and PNG format.
- The icon file path should match the **renderer texture path** of the entity.
- This supports all entities, including those from other mods.
---
## **Custom Player Icons**
### Step 1: Draw your character on top of the rainbow template
Player icons should be `24x24` pixels, and PNG format.
<img src="src/main/resources/assets/creaturechat/screenshots/example-player-icon1.png" width="256" style="image-rendering: pixelated;">
&nbsp; <img src="src/main/resources/assets/creaturechat/screenshots/example-player-icon2.png" width="256" style="image-rendering: pixelated;">
&nbsp; <img src="src/main/resources/assets/creaturechat/screenshots/example-player-icon3.png" width="256" style="image-rendering: pixelated;">
### Step 2: Position your icon on your skin
<img src="src/main/resources/assets/creaturechat/screenshots/example-player-skin1.png" width="256" style="image-rendering: pixelated;">
&nbsp; <img src="src/main/resources/assets/creaturechat/screenshots/example-player-skin2.png" width="256" style="image-rendering: pixelated;">
&nbsp; <img src="src/main/resources/assets/creaturechat/screenshots/example-player-skin3.png" width="256" style="image-rendering: pixelated;">
&nbsp; <img src="src/main/resources/assets/creaturechat/screenshots/example-player-skin4.png" width="256" style="image-rendering: pixelated;">
### Step 3: Toggle Icon Visibility
To activate a custom player icon, include a **black and white key** in your skin:
<img src="src/main/resources/assets/creaturechat/screenshots/example-skin1.png" width="360" style="image-rendering: pixelated;">
&nbsp; <img src="src/main/resources/assets/creaturechat/screenshots/example-skin2.png" width="360" style="image-rendering: pixelated;">
&nbsp; <img src="src/main/resources/assets/creaturechat/screenshots/example-player-skin4.png" width="360" style="image-rendering: pixelated;">
1. Add a **black square** at: `(28, 48)`
2. Add a **white square** at: `(32, 48)`
CreatureChat will detect this key and enable your custom icon.
### Step 4: Upload Skin in the Minecraft Launcher
- Don't forget to upload your new skin which includes the icon.
- Test your changes in-game by talking to a mob (in F5 mode)
## UV Coordinates for Icon:
Here are the full list of coordinates for the custom player icon UV.
```
UV_COORDINATES = [
[0.0, 0.0, 8.0, 8.0, 0.0, 0.0], # row 1 left
[24.0, 0.0, 32.0, 8.0, 8.0, 0.0], # row 1 middle
[32.0, 0.0, 40.0, 8.0, 16.0, 0.0], # row 1 right
[56.0, 0.0, 64.0, 8.0, 0.0, 8.0], # row 2 left
[56.0, 20.0, 64.0, 28.0, 8.0, 8.0], # row 2 middle
[36.0, 16.0, 44.0, 20.0, 16.0, 8.0], # row 2 top right
[56.0, 16.0, 64.0, 20.0, 16.0, 12.0], # row 2 bottom right
[56.0, 28.0, 64.0, 36.0, 0.0, 16.0], # row 3 left
[56.0, 36.0, 64.0, 44.0, 8.0, 16.0], # row 3 middle
[56.0, 44.0, 64.0, 52.0, 16.0, 16.0], # row 3 right
]
```
---
## Enjoy customizing your CreatureChat experience! 😊
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment