Download: Modrinth · GitHub releases
Single-use tokens that change one thing about one of your Pokémon: make it shiny, pick its nature, max an IV, swap its Poké Ball, and so on.
Tinker Tokens is a mod for Minecraft 1.21.1. One jar works on both loaders:
| Loader | Works with | Also needs |
|---|---|---|
| NeoForge 21.1 | Pixelmon 9.4.2 or later, or Cobblemon 1.8 or later | Kotlin for Forge, if you use Cobblemon |
| Fabric (loader 0.16 or later) | Cobblemon 1.8 or later | Fabric API |
It finds whichever mod is installed when the game starts. On NeoForge with both installed, it uses Pixelmon. On Fabric, Forge Config API Port is bundled inside the jar, so there is nothing else to install.
On a Fabric server running NeoForge mods through Sinytra Connector, install only one copy: the jar loads natively on Fabric already.
Unofficial addon. Tinker Tokens is a fan-made addon. It is not made by, affiliated with, or endorsed by the Pixelmon team, the Cobblemon team, Nintendo, Game Freak or The Pokémon Company.
- Hold a token and right-click.
- A menu shows your party. Each Pokémon is marked with whether the token can be used on it, and if not, why not. A PC button lets you pick from your PC boxes instead.
- Click a Pokémon. Tokens that need a choice (a nature, a ball, a form…) open a second menu with the options.
- The change is made and one token is used up.
If the token can't be used, you get a message saying why and the token is not used up. That covers things like an egg, a legendary on the blacklist, an IV that is already maxed, or a genderless Pokémon. Creative-mode players don't use up tokens.
Everything happens on the server, and the menus are ordinary chest menus. Install the mod on the server and on each player's game, the same as Pixelmon or Cobblemon: the tokens are items, so a client without the mod can't join. Every click is checked again on the server before anything changes:
- the Pokémon must still belong to the player;
- it must still be in their party or PC;
- the token must still be allowed on it;
- the player must still have the token.
| Token | Command name | What it does | Refused when |
|---|---|---|---|
| Shiny Token | shiny |
Makes the Pokémon shiny. | It is already shiny. By default legendaries, mythicals and Ultra Beasts are blacklisted. |
| Nature Token | nature |
Sets the nature you pick. On Pixelmon this sets the real nature and clears any mint. | — |
| Ability Token | ability |
Switches to another of the species' regular abilities, which you pick. | The species has only one regular ability. |
| Hidden Ability Token | hidden_ability |
Gives the Pokémon its hidden ability. | It has no distinct hidden ability, or already has it. |
| IV Token | iv |
Maxes one IV, which you pick. | All six IVs are already maxed. |
| Perfect IV Token | perfect_iv |
Maxes all six IVs. | All six are already maxed. |
| EV Reset Token | ev_reset |
Sets every EV to 0. | It has no EVs. |
| Gender Swap Token | gender |
Swaps male and female. | It is genderless, or its species has only one gender. |
| Size Token | size |
Sets the size you pick. On Pixelmon these are the growth sizes; on Cobblemon, five scales from tiny to huge. | — |
| Ball Token | ball |
Moves the Pokémon into the Poké Ball you pick. The Master Ball is blocked by default. | — |
| Level Token | level |
Adds levels: 5 by default, never past the server's level cap. | It is at the maximum level. |
| Form Token | form |
Changes to another permanent form of its species, which you pick. Battle-only forms (Mega, Gigantamax and so on) are never offered. | The species has no other form. |
| Palette Token | palette |
Changes to another palette, which you pick. Shiny Pokémon only get shiny palettes, and other Pokémon only get non-shiny ones. On Cobblemon this covers cosmetic aspects that don't change the form. | There is no other palette. |
| Friendship Token | friendship |
Maxes friendship. | Friendship is already maxed. |
Tokens are never used on eggs.
/modtoken needs permission level 2 (operators and the server console).
| Command | What it does |
|---|---|
/modtoken give <players> <type> [amount] |
Gives tokens, from 1 to 2304. Tokens that don't fit in the inventory are dropped at the player's feet. <type> is the command name from the table above, like shiny or perfect_iv. |
/modtoken list |
Lists every token type. |
/modtoken inspect <player> <slot> |
Shows what the tokens see of party slot 1–6 (nature, ability, IVs, EVs, size, ball, form, palette and so on), so staff can check a token did its job. |
The server config is in config/tinkertokens-server.toml. It is created the first time the server starts, and changes are picked up while the server is running.
[general]
| Option | Default | What it does |
|---|---|---|
allow_in_battle |
false |
Whether tokens work while the player is in a battle. |
allow_in_ranch |
false |
Whether tokens work on Pokémon in Cobblemon pastures. (Pixelmon takes ranch Pokémon out of the party and PC, so they never appear in the menu.) |
allow_pc |
true |
Whether the menu has a PC button. |
blacklist |
[] |
Pokémon that no token can be used on. |
[<token>_token], one section per token (for example [shiny_token]):
| Option | What it does |
|---|---|
enabled |
Turns the token on or off. |
blacklist |
Pokémon this token can't be used on. [shiny_token] defaults to ["#legendary", "#mythical", "#ultra_beast"]. |
blocked_choices |
Options the token never offers. This is on the tokens with a choice menu, except the IV token. Use the option's id: a nature ("hardy"), a ball ("master_ball" on Pixelmon, "cobblemon:master_ball" on Cobblemon), a size, form or palette name ("christmas"). [ball_token] defaults to ["master_ball", "cobblemon:master_ball"]. |
levels |
Only in [level_token]: levels per token (1–1000, default 5). |
Each blacklist entry is one of:
- a species name, like
"mewtwo"; - a label after
#:"#legendary","#mythical","#ultra_beast","#paradox", or any other Pixelmon tag or Cobblemon label; spec:and a Pixelmon spec or Cobblemon properties string, like"spec:palette:christmas"or"spec:shiny".
Some Pixelmon palettes are event rewards (christmas, drowned, elf and others). If they should stay special on your server, put them in [palette_token] blocked_choices.
Tokens are items, so anything that can run a command or give an item can hand them out:
-
Vote rewards, crates, shops, quests and kits. Have them run
modtoken give <player> <type> <amount>from the console. For example:modtoken give %player% shiny 1. -
Loot tables. Use the item ids
tinkertokens:<type>_token, liketinkertokens:shiny_token. -
Recipes. The mod ships with no recipes, so tokens can't be crafted unless you add a recipe. To add one, put a recipe in a datapack, for example
data/myserver/recipe/shiny_token.json:{ "type": "minecraft:crafting_shaped", "pattern": ["DDD", "DSD", "DDD"], "key": { "D": { "item": "minecraft:diamond" }, "S": { "item": "minecraft:nether_star" } }, "result": { "id": "tinkertokens:shiny_token", "count": 1 } }
The item tag #tinkertokens:tokens holds every token, which is handy for shops and filters.
You need JDK 21.
./gradlew buildThe jar for both loaders is written to build/libs/tinkertokens-<version>.jar.
Pixelmon and Cobblemon are compile-only dependencies, downloaded from the Modrinth Maven. Neither is included in this repository or in the jar.
To try it in a dev client:
./gradlew :neoforge:runClientPixelmon # NeoForge with Pixelmon, game folder run/pixelmon
./gradlew :neoforge:runClientCobblemon # NeoForge with Cobblemon and Kotlin for Forge, game folder run/cobblemon
./gradlew :neoforge:runServerPixelmon # a NeoForge server with Pixelmon, folder run/pixelmon-server
./gradlew :fabric:runProductionClient # Fabric with Fabric API and Cobblemon, game folder run/fabricThe Fabric client is a production client (nothing is remapped while it runs) because Cobblemon doesn't start in Loom's ordinary dev client.
common/: everything that doesn't depend on the loader.platform/:MonandPlatformare the small interfaces the tokens are written against.cobblemon/: the Cobblemon backend, shared by both loaders.token/TokenType: what each token offers, when it refuses, and what it changes.flow/: the menus, and the server-side checks around every click.config/andcommand/: the server config and/modtoken.
neoforge/: the NeoForge entry point, and the Pixelmon backend (Pixelmon is NeoForge-only).fabric/: the Fabric entry point. The config uses NeoForge's config classes, which Forge Config API Port provides on Fabric.
Each loader compiles the common/ sources for itself. At start-up the backend for the installed mod is loaded by name, so the other backend's classes are never loaded and never touch classes that aren't there.
./gradlew build then merges the two loaders' jars into one. The Fabric half's classes are moved to the package io.github.whosthatdeveloper.tinkertokensfabric, so the two halves never clash. Each loader reads only its own metadata file (META-INF/neoforge.mods.toml or fabric.mod.json), and the textures, lang and data files are shared.
The token textures are original and are generated by tools/gen-textures.mjs (node tools/gen-textures.mjs).
