CobbledStops
PokeStops in Cobblemon that give you small loots just like in Pokemon GO!
CobbledStops
<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>🔵 CobbledStops ⚪</h1>
CobbledStops is a lightweight datapack designed for the Cobblemon mod that seamlessly integrates the iconic PokéStop mechanic from Pokémon GO into your Minecraft world.
<br>
This datapack adds PokéStops around your world, which players can interact with to receive various items, encouraging exploration and rewarding trainers for their journeys. The PokéStops will spawn randomly in your world as you are exploring!
<br>
<br>
<img src="https://i.imgur.com/se8gvxO.gif">
<br>
<h2>🧊 Spawning CobbledStops command 💥</h2>
<ul>
<li>You can use <ins>/function cobbledstops:give_pokestop_spawner</ins> to give yourself an armorstand. Place this armorstand anywhere in your world to spawn a pokestop.</li>
</ul>
<h2>📋 CobbledStop Reward List 📋</h2>
<ul>
<li>
<strong>Common Loot: </strong>
<img src="https://wiki.cobblemon.com/images/6/6f/Poke_Ball.png"> Poke Ball; <img src="https://wiki.cobblemon.com/images/4/45/Great_Ball.png"> Great Ball; <img src="https://wiki.cobblemon.com/images/7/7a/Potion.png"> Potion; <img src="https://wiki.cobblemon.com/images/8/8f/Super_Potion.png"> Super Potion; <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/d/d6/Paralyze_Heal.png"> Paralyze Heal; <img src="https://wiki.cobblemon.com/images/4/41/Ice_Heal.png"> Ice heal; <img src="https://wiki.cobblemon.com/images/9/9c/Full_Heal.png"> Full Heal; <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/e/e4/X_Speed.png"> X Speed; <img src="https://wiki.cobblemon.com/images/8/8b/Dire_Hit.png"> Dire hit; <img src="https://wiki.cobblemon.com/images/b/bb/Net_Ball.png"> Net Ball; <img src="https://wiki.cobblemon.com/images/a/a6/Nest_Ball.png"> Nest Ball; <img src="https://wiki.cobblemon.com/images/1/10/Dive_Ball.png"> Dive Ball; <img src="https://wiki.cobblemon.com/images/8/8d/Premier_Ball.png"> Premier Ball; <img src="https://wiki.cobblemon.com/images/4/43/Elixir.png"> Elixir; <img src="https://wiki.cobblemon.com/images/3/3c/Ether.png"> Ether;
</li>
<br>
<li>
<strong>Rare Loot: </strong>
<img src="https://wiki.cobblemon.com/images/3/34/Ultra_Ball.png"> Ultra Ball; <img src="https://wiki.cobblemon.com/images/c/c3/Cherish_Ball.png"> Cherish Ball; <img src="https://wiki.cobblemon.com/images/3/33/Link_Cable.png"> Link Cable; <img src="https://wiki.cobblemon.com/images/2/23/Hyper_Potion.png"> Hyper Potion; <img src="https://wiki.cobblemon.com/images/d/d0/Max_Revive.png"> Max Revive; <img src="https://wiki.cobblemon.com/images/c/c3/Full_Restore.png"> Full Restore; <img src="https://wiki.cobblemon.com/images/1/13/Revive.png"> Revive; <img src="https://wiki.cobblemon.com/images/3/39/Dusk_Stone.png"> Dusk Stone; <img src="https://wiki.cobblemon.com/images/3/38/Shiny_Stone.png"> Shiny Stone; <img src="https://wiki.cobblemon.com/images/6/63/Fire_Stone.png"> Fire Stone; <img src="https://wiki.cobblemon.com/images/e/e0/Water_Stone.png"> Water Stone; <img src="https://wiki.cobblemon.com/images/b/b3/Thunder_Stone.png"> Thunder Stone; <img src="https://wiki.cobblemon.com/images/b/b2/Magmarizer.png"> Magmarizer; <img src="https://wiki.cobblemon.com/images/c/cc/Protector.png"> Protector; <img src="https://wiki.cobblemon.com/images/f/ff/King%27s_Rock.png"> Kings Rock;
</li>
<br>
<li>
<strong>Epic Loot: </strong>
<img src="https://wiki.cobblemon.com/images/9/90/Ability_Capsule.png"> Ability Capsule; <img src="https://wiki.cobblemon.com/images/f/f9/Beast_Ball.png"> Beast Ball; <img src="https://wiki.cobblemon.com/images/b/bb/Choice_Band.png"> Choice Band; <img src="https://wiki.cobblemon.com/images/0/00/Choice_Scarf.png"> Choice Scarf; <img src="https://wiki.cobblemon.com/images/e/eb/Choice_Specs.png"> Choice Specs; <img src="https://wiki.cobblemon.com/images/7/7f/Leftovers.png"> Leftovers; <img src="https://wiki.cobblemon.com/images/a/a2/Rare_Candy.png"> Rare Candy; <img src="https://wiki.cobblemon.com/images/2/23/PP_Max.png"> PP Max; <img src="https://wiki.cobblemon.com/images/d/de/Assault_Vest.png"> Assault Vest; <img src="https://wiki.cobblemon.com/images/b/b8/Heavy-Duty_Boots.png"> Heavy Duty Boots;
</li>
<br>
<li>
<strong>Legendary Loot: </strong>
<img src="https://wiki.cobblemon.com/images/e/ee/Master_Ball.png"> Master Ball; <img src="https://wiki.cobblemon.com/images/a/ad/Exp._Candy_L.png"> Exp Candy L; <img src="https://wiki.cobblemon.com/images/7/72/Lucky_Egg.png"> Lucky Egg; <img src="https://wiki.cobblemon.com/images/a/a5/Life_Orb.png"> Life Orb; <img src="https://wiki.cobblemon.com/images/f/f5/Exp._Share.png"> Exp Share;
</li>
</ul>
<br>
<h2>📝 Change CobbledStop 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 found in each pokestop, you'll need to have the datapack folder unzipped and placed in your datapacks directory. Once unzipped, navigate to the following location: <pre>CobbledStopDatapackdatacobblemonbehaviours</pre> In this folder, you'll find a JSON file named "loot_pool". Inside this file you can change the Minimum rolls that a Pokestop gives as well as the Maximum rolls. What this is means is how many times the script will try and roll an item when you claim a Pokestop. The default value is 1 meaning you will always get 1 item when claiming a Pokestop but if you change the Maximum value to 5 you will get between 1-5 items of loot when claiming a Pokestop.
To change the items given, 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>"defaultValue":"cobblemon:poke_ball"</ins> to <ins>"defaultValue":"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>
{
"variableName":"common_item_1",
"displayName":"§aCommon Item 1",
"description":"The item ID for Common Item 1 to be given to the player.",
"type":"TEXT",
"defaultValue":"cobblemon:poke_ball"
},
</pre>
To add more items, simply add a new section:
<pre>
{
"variableName":"common_item_21",
"displayName":"§aCommon Item 21",
"description":"The item ID for Common Item 21 to be given to the player.",
"type":"TEXT",
"defaultValue":"cobblemon:poke_ball"
},
</pre>
Remember to add a comma "," after each entry (except the last one). Essentially, it's a JSON list separated by commas. If you've modified any of these .json files and the pokestops 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.
Now you want to navigate to the following location: <pre>CobbledStopDatapackdatacobblemonmolang</pre>
To customize PokéStop rewards, open the <ins>"roll_pokestop_reward.molang"</ins> file.
First, you can change the drop rates for common, rare, epic, and legendary loot by editing their percentage values. To add or remove an item, find the loot category you want to change (e.g., common_pool) and place the new entry in the following section:
<pre>
(t.roll <= 60) ? {
t.item_id = q.random(
q.npc.config.common_item_1,
q.npc.config.common_item_2,
q.npc.config.common_item_3,
q.npc.config.common_item_4,
q.npc.config.common_item_5,
q.npc.config.common_item_6,
q.npc.config.common_item_7,
q.npc.config.common_item_8,
q.npc.config.common_item_9,
q.npc.config.common_item_10,
q.npc.config.common_item_11,
q.npc.config.common_item_12,
q.npc.config.common_item_13,
q.npc.config.common_item_14,
q.npc.config.common_item_15,
q.npc.config.common_item_16,
q.npc.config.common_item_17,
q.npc.config.common_item_18,
q.npc.config.common_item_19,
q.npc.config.common_item_20
q.npc.config.common_item_21
);
t.item_color = 'green';
};
</pre>
In this case I've added the entry <ins>"common_item_21"</ins> to the common loot pool.
<h2>🎲 Change CobbledStop Loot Chance 🎲</h2>
To change the percentage of each loot pool being rolled you can change the value in
<pre>
(t.roll <= 60) ? {
</pre>
This value means this loot pool has a 60% chance of being rolled when claiming a Pokestop.
<h2>⏰ Change CobbledStop Cooldown ⏰</h2>
To change the time that it takes for a Pokestop to be active again for the player navigate to the following path:
<pre>CobbledStopDatapackdatacobblemonbehaviours</pre>
In this path open the file <ins>"base_interactable.json"</ins>. Here you can change the time that it takes for a Pokestop to be claimable again, in this section:
<pre>
{
"variableName": "node_cooldown",
"displayName": "PokeStop Cooldown",
"description": "The cooldown of the PokeStop in hours",
"type": "NUMBER",
"defaultValue": "0.5"
},
</pre>
Change <ins>"defaultValue": "0.5"</ins> to whatever time in hours you'd like the Pokestop to refresh.
<br>
</ul>
<h2>🐣 Change CobbledStop Spawn Rates 🐣</h2>
<ul>
To change the Pokestops spawn rates, navigate to the following location: <pre>CobbledLootDatapackdatacobblemonspawn_pool_worldnpcs</pre> In this folder, you'll find a JSON file for the pokestop.
To change the chance of one spawning simply change the <ins>"weight"</ins> value. You can also change the <ins>"bucket"</ins>. There are 4 types of buckets: <ins>common</ins>, <ins>uncommon</ins>, <ins>rare</ins> and <ins>ultra-rare</ins>. If you want to make the Pokestop rarer it's probably easier to change the <ins>"bucket"</ins>.
<h2>🫠 Change CobbledStop to Never Despawn 🫠</h2>
To make it so the Pokestops never despawn, navigate to the following location: <pre>CobbledLootDatapackdatacobblemonnpcs</pre> Inside this folder open the file <ins>"pokestop.json"</ins> Inside this file change the value "canDespawn" from true to false.
<strong>Important (⚠️) </strong>If you want to use this datapack on your Server contact me first.
Big thanks to @jolihan that made most of the molang for this datapack!
<br>
<br>
Have some issues? You can join the Official Cobblemon discord server, search for 'CobbledStops' 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>