? CobbledStops ⚪
CobbledStops 是一个轻量级数据包,专为 Cobblemon 模组设计,将《宝可梦 GO》中标志性的“补给站”(PokéStop)机制无缝集成到您的 Minecraft 世界中。
此数据包会在您的世界中生成补给站,玩家可以与之互动以获取各种物品,鼓励探索并为训练家的旅程提供奖励!在您探索世界时,补给站会随机生成!
? 生成 CobbledStops 的命令 ?
- 您可以使用 /function cobbledstops:give_pokestop_spawner 命令获得一个盔甲架。将此盔甲架放置在世界中的任何位置即可生成一个补给站。
? 补给站奖励列表 ?
-
普通掉落:
精灵球;
高级球;
伤药;
好伤药;
解毒药;
清醒粉;
烧伤药;
麻痹粉;
冰冻治愈剂;
全治愈剂;
攻击增强剂;
防御增强剂;
速度增强剂;
必中;
网球;
nest球;
潜水球;
超级球;
万能药;
无限针;
-
稀有掉落:
大师球;
珍贵球;
连接缆线;
万灵药;
终极复活药;
完全恢复;
复活币;
暗之石;
光之石;
火之石;
水之石;
雷之石;
电磁转换器;
护符;
王者之证;
-
史诗掉落:
特性胶囊;
怪兽球;
讲究头带;
讲究围巾;
讲究眼镜;
吃剩的东西;
稀有糖果;
PP提升剂;
突击背心;
耐久靴子;
-
传说掉落:
大师球;
经验糖果 L;
幸运蛋;
生命宝珠;
分享装置;
? 修改补给站掉落列表 ?
重要提示:修改数据包对新手来说可能具有挑战性。请谨慎操作! ⚠️
若要自定义每个补给站中的物品,您需要将数据包文件夹解压并放置在 datapacks 目录中。解压后,请导航至以下路径:
CobbledStopDatapack\data\cobblemon\behaviours
在此文件夹中,您会找到一个名为 "loot_pool" 的 JSON 文件。在该文件中,您可以更改补给站给予的最小和最大抽取次数(rolls)。这表示当您领取补给站时,脚本尝试抽取物品的次数。默认值为 1,意味着您在领取补给站时总是获得 1 件物品;但如果将最大值改为 5,则在领取补给站时将获得 1-5 件不等的掉落物。
要更改给予的物品,请找到如下格式的项目:"name": "cobblemon:poke_ball". 例如,如果你想用稀有糖果替换精灵球的掉落物,请将 "defaultValue":"cobblemon:poke_ball" 修改为 "defaultValue":"cobblemon:rare_candy".
你可以通过在游戏中按下 F3+H 并将鼠标悬停在物品上来查找 Cobblemon 物品的命名空间。
若要移除物品,只需删除对应的部分即可:
{
"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"
},
若要添加更多物品,只需新增一个部分:
{
"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"
},
请记住在每个条目后(除了最后一个)都要加上逗号 ","。本质上,这是一个由逗号分隔的 JSON 列表。如果你修改了任何 .json 文件且精灵球补给站不再工作,可能是命名空间中的物品拼写错误,或者使用了 Minecraft 命名空间中不存在的物品。此外,请使用在线 JSON 格式化程序检查你的 .json 文件格式是否正确。
现在你需要导航到以下位置:
CobbledStopDatapack\data\cobblemon\molang
要自定义精灵球补给站的奖励,请打开
"roll_pokestop_reward.molang" 文件。
首先,你可以通过编辑百分比值来更改普通、稀有、史诗和传说战利品的掉落率。若要添加或移除物品,请找到你想要更改的战利品类别(例如 common_pool),并将新条目放置在以下部分中:
(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';
};
在这种情况下,我已将条目 "common_item_21" 添加到普通战利品池中。
? 更改 CobbledStop 战利品概率 ?
若要更改每个战利品池被抽取的概率,你可以修改以下代码中的数值:
(t.roll = 60) ? {
该数值表示在领取精灵球补给站时,此战利品池有 60% 的概率被抽取。
⏰ 更改 CobbledStop 冷却时间 ⏰
若要更改玩家再次激活精灵球补给站所需的时间,请导航至以下路径:
CobbledStopDatapack\data\cobblemon\behaviours
在该路径下打开文件 "base_interactable.json"。你可以在以下部分中更改精灵球补给站再次可领取所需的冷却时间:
{
"variableName": "node_cooldown",
"displayName": "PokeStop Cooldown",
"description": "The cooldown of the PokeStop in hours",
"type": "NUMBER",
"defaultValue": "0.5"
},
将 "defaultValue": "0.5" 更改为你希望精灵球补给站刷新的任意小时数。
? 更改 CobbledStop 生成率 ?
CobbledLootDatapack\data\cobblemon\spawn_pool_world\npcs
在此文件夹中,你会找到一个用于精灵球补给的 JSON 文件。
若要更改其生成几率,只需修改 "weight" 值即可。你也可以更改 "bucket"。共有 4 种桶类型:common(普通)、uncommon(非普通)、rare(稀有)和 ultra-rare(超稀有)。如果你想让精灵球补给站更难出现,更改 "bucket" 可能更容易。
? 使 CobbledStop 永不消失 ?
若要使精灵球补给站永不消失,请导航至以下位置:
CobbledLootDatapack\data\cobblemon\npcs
在此文件夹内打开文件
"pokestop.json"。在此文件中,将 "canDespawn" 的值从 true 改为 false。
重要提示 (⚠️) 如果你打算在你的服务器上使用该数据包,请先联系我。
特别感谢 @jolihan 为该数据包制作了大部分 molang 代码!
遇到问题?你可以加入 Cobblemon 官方 Discord 服务器,搜索 'CobbledStops' 并在那里提问,或者 alternatively,你可以在 Discord 上私信我。
? CobbledStops ⚪
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.
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!
? Spawning CobbledStops command ?
- You can use /function cobbledstops:give_pokestop_spawner to give yourself an armorstand. Place this armorstand anywhere in your world to spawn a pokestop.
? CobbledStop Reward List ?
-
Common Loot:
Poke Ball;
Great Ball;
Potion;
Super Potion;
Antidote;
Awakening;
Burn Heal;
Paralyze Heal;
Ice heal;
Full Heal;
X Attack;
X Defence;
X Speed;
Dire hit;
Net Ball;
Nest Ball;
Dive Ball;
Premier Ball;
Elixir;
Ether;
-
Rare Loot:
Ultra Ball;
Cherish Ball;
Link Cable;
Hyper Potion;
Max Revive;
Full Restore;
Revive;
Dusk Stone;
Shiny Stone;
Fire Stone;
Water Stone;
Thunder Stone;
Magmarizer;
Protector;
Kings Rock;
-
Epic Loot:
Ability Capsule;
Beast Ball;
Choice Band;
Choice Scarf;
Choice Specs;
Leftovers;
Rare Candy;
PP Max;
Assault Vest;
Heavy Duty Boots;
-
Legendary Loot:
Master Ball;
Exp Candy L;
Lucky Egg;
Life Orb;
Exp Share;
? Change CobbledStop List ?
Important Note: Modifying datapacks can be challenging for beginners. Proceed with caution! ⚠️
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:
CobbledStopDatapack\data\cobblemon\behaviours
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: "name": "cobblemon:poke_ball". For example, if you want to replace the pokeball drop with a rare candy, change "defaultValue":"cobblemon:poke_ball" to "defaultValue":"cobblemon:rare_candy".
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:
{
"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"
},
To add more items, simply add a new section:
{
"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"
},
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:
CobbledStopDatapack\data\cobblemon\molang
To customize PokéStop rewards, open the
"roll_pokestop_reward.molang" 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:
(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';
};
In this case I've added the entry "common_item_21" to the common loot pool.
? Change CobbledStop Loot Chance ?
To change the percentage of each loot pool being rolled you can change the value in
(t.roll = 60) ? {
This value means this loot pool has a 60% chance of being rolled when claiming a Pokestop.
⏰ Change CobbledStop Cooldown ⏰
To change the time that it takes for a Pokestop to be active again for the player navigate to the following path:
CobbledStopDatapack\data\cobblemon\behaviours
In this path open the file "base_interactable.json". Here you can change the time that it takes for a Pokestop to be claimable again, in this section:
{
"variableName": "node_cooldown",
"displayName": "PokeStop Cooldown",
"description": "The cooldown of the PokeStop in hours",
"type": "NUMBER",
"defaultValue": "0.5"
},
Change "defaultValue": "0.5" to whatever time in hours you'd like the Pokestop to refresh.
? Change CobbledStop Spawn Rates ?
To change the Pokestops spawn rates, navigate to the following location:
CobbledLootDatapack\data\cobblemon\spawn_pool_world\npcs
In this folder, you'll find a JSON file for the pokestop.
To change the chance of one spawning simply change the "weight" value. You can also change the "bucket". There are 4 types of buckets: common, uncommon, rare and ultra-rare. If you want to make the Pokestop rarer it's probably easier to change the "bucket".
? Change CobbledStop to Never Despawn ?
To make it so the Pokestops never despawn, navigate to the following location:
CobbledLootDatapack\data\cobblemon\npcs
Inside this folder open the file
"pokestop.json" Inside this file change the value "canDespawn" from true to false.
Important (⚠️) 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!
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧