Cobblemon NPC's Remix banner
Cobblemon NPC's Remix icon

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) or skin_url plus optional skin_model (default/slim) for custom textures; both formats save back to trainers.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/skins and point skin_url to a relative path like skins/gym_leader.png, or supply a direct texture URL.
  • Pick skin_model: slim for Alex-style skins; omit or set default for Steve-style layouts.
  • Run /trainerconfig reload after editing the YAML to push new skins and trainer data to existing NPCs. Clearing a skin in the config or via /trainerskin will revert tracked NPCs to their default look.