In this guide we'll cover how to:
- Adding custom paddock sign
- Adding custom facility sign
Folder Structure
You could use a plain datapack + resource-pack, but for simplicity we'll use a JS-addon.
[addon_name]/addon_data/data/data/[addon_name]/pack.mcmetaresources/assets/[addon_name]/pack.mcmeta
Avertissement
I won't reference pack.mcmeta anymore from this point forwards, it should still be there.
We'll not use the addon_data/ folder here, so you can leave it out.
Inside the data folder we'll start adding the necessary folders.
[addon_name]/addon_data/data/data/[addon_name]/paddock_signs/custom/[paddock_sign_name].jsonfacility_signs/custom/[facility_sign_name].jsonresources/
We're using the custom folder inside the data to avoid confusion
Paddock Sign Colors
| Value | Color |
|---|---|
0 | BLUE |
1 | GREEN |
2 | PURPLE |
3 | RED |
4 | WHITE |
5 | HYBRID |
6 | YELLOW |
7 | FACILITY (Pure White) |
{"name": "[Facility Sign Name]","location": "[addon_name]:[facility_sign_name]"}
Avertissement
"name": is going to get changed to
"translation": "[addon_name].[facility_sign_name]"
in the near future.
If you want your future signs to be compatible, feel free to add it early
The name here is the display name in the designated items
That's all for data, lets move on to resources.
Resources
No model files are needed, the signs are generated from their textures.
The texture names have to be equal to the path of the location set in the data files, and they go in the namespace of
that location (here [addon_name]).
Every sign needs two textures: one for the sign in the world, and one for the preview in the sign screen.
[addon_name]/addon_data/data/resources/assets/[addon_name]/textures/signs/facility/custom/[facility_sign_name].pngpaddock/custom/[paddock_sign_name].pngblock/facility_sign/[facility_sign_name].pngpaddock_sign/[paddock_sign_name].png
The paddock signs still need one extra thing! (You can skip this for the facility sign)
Let's add the coin, this is the icon shown in the paddock sign list.
[addon_name]/addon_data/data/resources/assets/[addon_name]/textures/signs/block/gui/icon/[paddock_sign_name].png
And that should be all for the signs!
Translation file
Avertissement
This hasn't been implemented yet, but feel free to add it in advance to make sure your maintain compatibility.
Let's add the default language file:
[addon_name]/addon_data/data/resources/assets/[addon_name]/textures/lang/en_us.json
en_us.json is the main JSON file used by Minecraft.
Inside this file:
{"[addon_name].[facility_sign_name]": "[Facility Sign Name]","[addon_name].[paddock_sign_name]": "[Paddock Sign Name]"}
That should be all!