TextureCoupons

Texture coupons and texture groups for Cobblemon

TextureCoupons is a Fabric mod for Cobblemon servers that lets you define texture groups (custom aspects/skins) and issue coupons that players can redeem to apply those textures to their own Pokemon.

TextureCoupons is opinionated - it's designed to be used in a certain way. While you can use it to do other things, it's primarily for servers who have groups of textures that they sell/distribute in "packs". I.e. they add 30 "Egyptian" textures, with a common aspect to make the texture display like "egyptian".

TextureCoupons is made up of Coupons (tied to a pack, like "egyptian") which can be used to give any Pokemon in that pack the defined texture (by applying the aspect).

Right clicking a coupon opens up a menu that shows all Pokemon it can be used on:

The real reason to use TextureCoupons over something like NeoSpecs is getting pretty Pokemon specific texture coupons with no extra configs.

You can give players Specific Texture Coupons which only work on one Pokemon, which uses the Pokemon Model (/w Texture) as the item. Players love to collect these on top of using them on their Pokemon.

All you need to do to get started is create a group file, then you can use the easy commands /tc give <player> <group> <specific pokemon> to distribute.

How coupons work

TextureCoupons provides two coupon types:

  1. Group coupons

    • Can be applied to any Pokemon that matches the group's whitelist entries.

    • Right-click a Pokemon you own with the coupon in hand to apply the texture.

    • Using the coupon in-hand (right-click air) opens the texture group GUI.

  2. Specific Pokemon coupons

    • Can only be applied to Pokemon that match the pokemonProperties string used to create the coupon.

    • Right-click a Pokemon you own with the coupon in hand to apply the texture.

    • Specific Pokemon coupons are Pokemon Items with the properties + the group aspect applied.

Rules:

  • The coupon must be used on a Pokemon the player owns.

  • If the Pokemon does not match the coupon's criteria, nothing happens.

  • When a coupon successfully applies, it is consumed.

Data folder layout

On first load, TextureCoupons creates a config directory and copies its GUI/resources.

  • Config root: <server>/config/TextureCoupons

  • Texture groups directory: <server>/config/TextureCoupons/TextureGroups

  • GUI folder: <server>/config/TextureCoupons/GUI

  • GUI menus: <server>/config/TextureCoupons/GUI/Menus

  • Messages file: <server>/config/TextureCoupons/messages.json

Any regular file inside TextureGroups is loaded as a texture group JSON. The registry is cleared and reloaded when the server starts and when /tc reload is run.

Next steps

Last updated