
Cobblemon NPC's Remix
I would like to be able to add custom skins to the trainer npcs so I can add gym leaders in my server
00—cobblemon-fabricServer1.21.1mod
Cobblemon NPC's now supports fully custom trainer skins so gym leaders and other NPCs can use textures beyond player profiles.
Changes in this update
- Trainer entries accept either
skin(player profile) orskin_urlplus optionalskin_model(default/slim) for custom textures; both formats save back totrainers.yml. /trainerskin <trainer_id> url <link> [model]applies a custom PNG/texture URL (or clears when given blank/clear); the original/trainerskin <trainer_id> <playerName>flow still sets profile skins.- NPCs spawned or refreshed now load textures from http/https links or from files resolved relative to the config folder, falling back to default visuals when skins are cleared.
New files
- src/main/java/com/playergames/plugin/config/model/TrainerSkinModel.java
Notes and tips
- Place custom PNGs in
config/cobblemonnpcs/skinsand pointskin_urlto a relative path likeskins/gym_leader.png, or supply a direct texture URL. - Pick
skin_model: slimfor Alex-style skins; omit or setdefaultfor Steve-style layouts. - Run
/trainerconfig reloadafter editing the YAML to push new skins and trainer data to existing NPCs. Clearing a skin in the config or via/trainerskinwill revert tracked NPCs to their default look.