201 Trainers [Cobblemon]
This datapack introduces Trainer NPCs that roam the world, offering players the chance to challenge them in battle and earn exciting rewards!
201 Trainers [Cobblemon]
<div align="center">
<a href="https://modrinth.com/modpack/cobblemon-origins" target="_blank">
<img src="https://i.imgur.com/qOVttPN.png" alt="">
</a>
<p style="text-align: center;">
<a href="https://discord.gg/Rhd62tkW9M" target="_blank">
<img src="https://i.imgur.com/fKxX2Su.png" alt="Discord">
</a>
</p>
</div>
---
<h1>🤺 201 Trainers 🤺</h1>
This datapack adds Trainer NPC's around the world making it even better to level up your Pokémon as well as getting some bonus rewards for winning against them! All trainers have dynamic parties and Pokémon levels that scale with your team, ensuring that whether you're a new or experienced player, every battle remains a challenging and engaging experience.
<br>
<strong> Important (⚠️) </strong>This datapack requires a resource pack to function properly. Make sure to place the ZIP file in both your resourcepacks and datapacks folders.
<br>
<br>
<img src="https://i.imgur.com/yoBgNlp.gif">
<h2>📋 Reward List 📋</h2>
<ul>
<img src="https://wiki.cobblemon.com/images/6/6f/Poke_Ball.png"> Poke Ball; <img src="https://wiki.cobblemon.com/images/1/10/Dive_Ball.png"> Dive Ball; <img src="https://wiki.cobblemon.com/images/5/50/Dusk_Ball.png"> Dusk Ball; <img src="https://wiki.cobblemon.com/images/f/f8/Fast_Ball.png"> Fast Ball; <img src="https://wiki.cobblemon.com/images/3/30/Friend_Ball.png"> Friend Ball; <img src="https://wiki.cobblemon.com/images/4/45/Great_Ball.png"> Great Ball; <img src="https://wiki.cobblemon.com/images/2/24/Heal_Ball.png"> Heal Ball; <img src="https://wiki.cobblemon.com/images/1/13/Heavy_Ball.png"> Heavy Ball; <img src="https://wiki.cobblemon.com/images/5/5b/Level_Ball.png"> Level Ball; <img src="https://wiki.cobblemon.com/images/0/0d/Love_Ball.png"> Love Ball; <img src="https://wiki.cobblemon.com/images/0/0a/Lure_Ball.png"> Lure Ball; <img src="https://wiki.cobblemon.com/images/8/8d/Luxury_Ball.png"> Luxury Ball; <img src="https://wiki.cobblemon.com/images/b/b0/Moon_Ball.png"> Moon Ball; <img src="https://wiki.cobblemon.com/images/a/a6/Nest_Ball.png"> Nest Ball; <img src="https://wiki.cobblemon.com/images/b/bb/Net_Ball.png"> Net Ball; <img src="https://wiki.cobblemon.com/images/8/8d/Premier_Ball.png"> Premier Ball; <img src="https://wiki.cobblemon.com/images/b/be/Quick_Ball.png"> Quick Ball; <img src="https://wiki.cobblemon.com/images/7/75/Repeat_Ball.png"> Repeat Ball; <img src="https://wiki.cobblemon.com/images/4/46/Safari_Ball.png"> Safari Ball; <img src="https://wiki.cobblemon.com/images/7/7d/Sport_Ball.png"> Sport Ball; <img src="https://wiki.cobblemon.com/images/4/46/Timer_Ball.png"> Timer Ball; <img src="https://wiki.cobblemon.com/images/3/34/Ultra_Ball.png"> Ultra Ball; <img src="https://wiki.cobblemon.com/images/7/71/Antidote.png"> Antidote; <img src="https://wiki.cobblemon.com/images/b/b7/Awakening.png"> Awakening; <img src="https://wiki.cobblemon.com/images/1/10/Burn_Heal.png"> Burn Heal; <img src="https://wiki.cobblemon.com/images/8/8b/Dire_Hit.png"> Dire hit; <img src="https://wiki.cobblemon.com/images/4/43/Elixir.png"> Elixir; <img src="https://wiki.cobblemon.com/images/1/14/Energy_Root.png"> Energy Root; <img src="https://wiki.cobblemon.com/images/3/3c/Ether.png"> Ether; <img src="https://wiki.cobblemon.com/images/9/9c/Full_Heal.png"> Full Heal; <img src="https://wiki.cobblemon.com/images/c/c3/Full_Restore.png"> Full Restore; <img src="https://wiki.cobblemon.com/images/0/01/Guard_Spec.png"> Guard Spec; <img src="https://wiki.cobblemon.com/images/c/c3/Heal_Powder.png"> Heal Powder; <img src="https://wiki.cobblemon.com/images/2/23/Hyper_Potion.png"> Hyper Potion; <img src="https://wiki.cobblemon.com/images/4/41/Ice_Heal.png"> Ice heal; <img src="https://wiki.cobblemon.com/images/c/cd/Max_Elixir.png"> Max Elixir; <img src="https://wiki.cobblemon.com/images/f/fd/Max_Ether.png"> Max Ether; <img src="https://wiki.cobblemon.com/images/0/03/Max_Potion.png"> Max potion; <img src="https://wiki.cobblemon.com/images/d/d0/Max_Revive.png"> Max Revive; <img src="https://wiki.cobblemon.com/images/d/d6/Paralyze_Heal.png"> Paralyze Heal; <img src="https://wiki.cobblemon.com/images/7/7a/Potion.png"> Potion; <img src="https://wiki.cobblemon.com/images/4/45/Revival_Herb.png"> Revival Herb; <img src="https://wiki.cobblemon.com/images/1/13/Revive.png"> Revive; <img src="https://wiki.cobblemon.com/images/8/8f/Super_Potion.png"> Super Potion; <img src="https://wiki.cobblemon.com/images/e/e1/X_Accuracy.png"> X Accuracy; <img src="https://wiki.cobblemon.com/images/c/c9/X_Attack.png"> X Attack; <img src="https://wiki.cobblemon.com/images/d/d6/X_Defense.png"> X Defence; <img src="https://wiki.cobblemon.com/images/3/30/X_Sp_Atk.png"> X Special Attack; <img src="https://wiki.cobblemon.com/images/b/b4/X_Sp_Def.png"> X Special Defence; <img src="https://wiki.cobblemon.com/images/e/e4/X_Speed.png"> X Speed; <img src="https://wiki.cobblemon.com/images/d/de/Medicinal_Leek.png"> Medicinal Leek; <img src="https://i.imgur.com/PZ3mjfF.png"> Metal powder; <img src="https://i.imgur.com/i02hK3d.png"> Quick powder; <img src="https://wiki.cobblemon.com/images/a/a2/Rare_Candy.png"> Rare Candy; <img src="https://wiki.cobblemon.com/images/f/f5/Calcium.png"> Calcium; <img src="https://wiki.cobblemon.com/images/f/fe/Carbos.png"> Carbos; <img src="https://wiki.cobblemon.com/images/1/1e/HP_Up.png"> HP Up; <img src="https://wiki.cobblemon.com/images/4/45/Iron.png"> Iron; <img src="https://wiki.cobblemon.com/images/d/d8/Protein.png"> Protein; <img src="https://wiki.cobblemon.com/images/c/cb/Zinc.png"> Zinc; <img src="https://wiki.cobblemon.com/images/d/dd/Big_Root.png"> Big Root; <img src="https://wiki.cobblemon.com/images/9/95/Sachet.png"> Sachet; <img src="https://wiki.cobblemon.com/images/6/6b/Whipped_Dream.png"> Whipped Dream; <img src="https://wiki.cobblemon.com/images/1/16/Absorb_Bulb.png"> Absorb Bulb; <img src="https://wiki.cobblemon.com/images/8/8e/Binding_Band.png"> Binding Band; <img src="https://wiki.cobblemon.com/images/4/4f/Bug_Gem.png"> Bug Gem; <img src="https://wiki.cobblemon.com/images/1/10/Cell_Battery.png"> Cell Battery; <img src="https://wiki.cobblemon.com/images/f/f0/Dark_Gem.png"> Dark Gem; <img src="https://wiki.cobblemon.com/images/c/cc/Dragon_Gem.png"> Dragon Gem; <img src="https://wiki.cobblemon.com/images/e/e0/Electric_Gem.png"> Electric Gem; <img src="https://wiki.cobblemon.com/images/8/86/Everstone.png"> Everstone; <img src="https://wiki.cobblemon.com/images/e/e4/Fairy_Gem.png"> Fairy Gem; <img src="https://wiki.cobblemon.com/images/d/d9/Fighting_Gem.png"> Fighting Gem; <img src="https://wiki.cobblemon.com/images/0/09/Fire_Gem.png"> Fire Gem; <img src="https://wiki.cobblemon.com/images/8/89/Float_Stone.png"> Float Stone; <img src="https://wiki.cobblemon.com/images/1/1a/Flying_Gem.png"> Flying Gem; <img src="https://wiki.cobblemon.com/images/7/70/Ghost_Gem.png"> Ghost Gem; <img src="https://wiki.cobblemon.com/images/f/f2/Grass_Gem.png"> Grass Gem; <img src="https://wiki.cobblemon.com/images/2/25/Ground_Gem.png"> Ground Gem; <img src="https://wiki.cobblemon.com/images/6/6f/Ice_Gem.png"> Ice Gem; <img src="https://wiki.cobblemon.com/images/0/0c/Normal_Gem.png"> Normal Gem; <img src="https://wiki.cobblemon.com/images/3/38/Poison_Gem.png"> Poison Gem; <img src="https://wiki.cobblemon.com/images/f/fe/Psychic_Gem.png"> Psychic Gem; <img src="https://cdn.discordapp.com/attachments/1325800834835153047/1370845725176631386/image.png?ex=6820fb11&is=681fa991&hm=0e348b93955028bee8a6263430a6ab70ff9f4ce0270645e5724e10bc24657091&"> Ring Target; <img src="https://wiki.cobblemon.com/images/a/a6/Rock_Gem.png"> Rock Gem; <img src="https://i.imgur.com/1Vce1Xi.png"> Snowball; <img src="https://wiki.cobblemon.com/images/7/73/Steel_Gem.png"> Steel Gem; <img src="https://wiki.cobblemon.com/images/4/44/Water_Gem.png"> Water Gem; <img src="https://wiki.cobblemon.com/images/8/89/Shed_Shell.png"> Shed Shell; <img src="https://wiki.cobblemon.com/images/8/82/Sticky_Barb.png"> Sticky Barb;
</li>
</ul>
<h2>🏆 NPC Spawns and Rewards 🐣</h2>
<ul>
| 🧠 NPC | 🌍 Biome/Location | 💰 Money Reward |
| :-------------: | :-------------------------------------------------: | :-------------: |
| Aqua | Grassland, Highlands, Hills, Forest | 100–200 |
| Artist | Grassland, Plains, Hills, Forest | 200–500 |
| Ash | Overworld | 1000–2000 |
| Backpacker | Grassland, Highlands, Hills, Forest | 500–1000 |
| Baker | Grassland, Hills, Forest | 100–200 |
| Biker | Overworld | 200–500 |
| Bird Keeper | Mountain, Forest, Highlands | 200–500 |
| Black Belt | Mountain, Desert, Badlands, Highlands | 200–500 |
| Boarder | Deep Ocean, Coast, Beach, Island | 100–200 |
| Bug Catcher | Forest, Grassland, Jungle | 200–500 |
| Café Master | Sandy, Plains | 100–200 |
| Dragon Tamer | Mountain, Peak, End, Nether Mountain | 500–1000 |
| Engineer | Sandy, Plains | 200–500 |
| Firebreather | Nether, Cave | 200–500 |
| Fisherman | Coast, Beach, Freshwater, Island | 200–500 |
| Garçon | Plains | 500–1000 |
| Gardener | Grassland, Highlands, Hills, Forest | 100–200 |
| Golfer | Grassland, Plains | 100–200 |
| Guitarist | Mountain, Peak | 200–500 |
| Hiker | Mountain, Peak, Nether Mountain | 500–1000 |
| James | Mountain, Peak, Grassland, Highlands, Hills, Forest | 1000–2000 |
| Jessie | Mountain, Peak, Grassland, Highlands, Hills, Forest | 1000–2000 |
| Jogger | Grassland, Highlands, Hills, Plains | 100–200 |
| Magma | Nether, Cave | 100–200 |
| Model | Mountain, Peak | 500–1000 |
| Office Worker | Magical, Plains | 500–1000 |
| Officer | Plains | 100–200 |
| Pokémon Breeder | Mountain, Grassland, Hills, Plains | 200–500 |
| Pokémaniac | Spooky, Cave, Desert, Grassland | 500–1000 |
| Pokéfan | Grassland, Highlands, Hills, Forest | 200–500 |
| Pokékid | Grassland, Highlands, Hills, Forest | 100–200 |
| Postman | Plains | 200–500 |
| Psychic | Magical, Mushroom, Nether Fungus | 500–1000 |
| Rocket Grunt | Nether, Cave | 500–1000 |
| Sailor | Coast, Ocean | 200–500 |
| Schoolboy | Grassland, Highlands, Hills, Forest | 200–500 |
| Sky Trainer | Mountain, Peak, Highlands, Hills | 200–500 |
| Super Nerd | Magical, Mushroom, End, Nether Fungus | 200–500 |
| Surfer | Coast, Ocean | 500–1000 |
| Swimmer | Deep Ocean, Coast, Beach, Island | 200–500 |
| Tourist | Grassland, Plains, Hills, Forest | 100–200 |
| Veteran | Mountain, Peak, Highlands, Hills | 500–1000 |
| Youngster | Grassland, Highlands, Hills, Forest | 100–200 |
</ul>
<h2>📝 Change Rewards List 📝</h2>
<ul>
<strong>Important Note: </strong>Modifying datapacks can be challenging for beginners. Proceed with caution! <strong> ⚠️ </strong><br>
<br>
To customize the items that each Trainer gives, you'll need to have the datapack folder unzipped and placed in your datapacks directory. Once unzipped, navigate to the following location: <pre>201TrainersDatapackdata201loot_table</pre> In this folder, you'll find a JSON file with all the rewards.
To change an item, open the .json file and locate an item which will look like this: <ins>"name": "cobblemon:poke_ball".</ins> For example, if you want to replace the pokeball drop with a rare candy, change <ins>"name": "cobblemon:poke_ball"</ins> to <ins>"name": "cobblemon:rare_candy".</ins>
You can find the namespaces for cobblemon items by pressing F3+H in-game and hovering your mouse over an item.
To remove items, simply delete the corresponding section:
<pre>
{
"type": "item",
"weight": 1,
"name": "cobblemon:poke_ball"
}
</pre>
To add more items, simply add a new section:
<pre>
{
"type": "item",
"weight": 1,
"name": "cobblemon:poke_ball"
}
</pre>
Remember to add a comma "," after each item (except the last one). Essentially, it's a JSON list separated by commas. If you've modified any of these .json files and the rewards stop working, you might have misspelled an item in the namespace or used an item that doesn't exist in Minecraft's namespace. Additionally, double-check that your .json file is properly formatted by using an online JSON formatter.
<br>
</ul>
<h2>💵 Add Money Rewards for Servers 💵</h2>
<ul>
<strong> Important (⚠️) </strong>If you want to use this datapack on your Server contact me first.
<br>
If you are running Impactor on your Server you can also add money rewards to each trainer that is defeated. Simply go into this folder location:<pre>201TrainersDatapackdatacobblemonbehaviours</pre> Inside this folder you will see 5 .json files with the corresponding names battle_reward_pokedollars.json, battle_reward_pokedollars2.json, battle_reward_pokedollars3.json, battle_reward_pokedollars4.json and battle_reward_pokedollars5.json.
Open each one of these files and change the "defaultValue" from "0" to "1":
<pre>
{
"name": "cobblemon.behaviour.battle_reward_pokedollars_npcs.name",
"description": "cobblemon.behaviour.battle_reward_pokedollars_npcs.desc",
"entityType": "cobblemon:npc",
"configurations": [
{
"type": "cobblemon:add_variables",
"variables": [
{
"variableName": "toggle_battle_reward_p",
"displayName": "Toggle Battle Pokedollar Reward",
"description": "Determines if this trainer should give a reward to the player after the battle.",
"type": "BOOLEAN",
"defaultValue": "0"
},
{
"variableName": "battle_reward_amount_p_1",
"displayName": "Min Battle Pokedollar Payout",
"description": "Determines the min payout for the player.",
"type": "NUMBER",
"defaultValue": "100.0"
},
{
"variableName": "battle_reward_amount_p_2",
"displayName": "Max Battle Pokedollar Payout",
"description": "Determines the max payout for the player.",
"type": "NUMBER",
"defaultValue": "200.0"
}
]
}
]
}
</pre>
Then go into this folder location:
<pre>201TrainersDatapackdatacobblemonflowsbattle_victory</pre> Inside this folder you will see a single file named npc_battle_end.json. Go inside this file and change the name of the set currency to the name of the currency you are using. To change, go on each of the sections that reference impactor:pokedollars, and change pokedollars to the currency of your choice:
<pre>
t.loser.npc.config.toggle_battle_reward_p ? {
for_each(t.player_winner, c.player_winners, {
v.player = t.player_winner.player;
v.npc = t.loser.npc;
q.set_query('player', t.player_winner.player);
q.set_query('npc', t.loser.npc);
t.modifier = q.player.data.ng.modifier;
t.random_dollars = math.random_integer(q.npc.config.battle_reward_amount_p_1 * (t.modifier != 0 ? t.modifier : 1), q.npc.config.battle_reward_amount_p_2 * (t.modifier != 0 ? t.modifier : 1));
q.run_command('deposit ' + t.random_dollars + ' <ins>impactor:pokedollars</ins> ' + q.player.username);
q.player.tell('§aYou have received §l' + t.random_dollars + '$§r§a for winning!§r');
});
};
</pre>
</ul>
Have some issues? You can join the Official Cobblemon discord server, search for '201 Trainers' and ask your questions there, or alternatively, you can DM me on discord.
<br>
<br>
<div style="width: 150px; text-align: center; margin-bottom: -10px;">
<img src="https://i.imgur.com/BWJysFv.png" alt="Image on the left" style="float: left;">
<a href="https://modrinth.com/user/Quim201" target="_blank">
<img src="https://i.imgur.com/uNv8h0k_d.png?maxwidth=320&shape=thumb&fidelity=high" alt="Image that links to a user profile" style="float: right;">
</a>
</div>
<br>
</ul>