? 201 Trainers ?
此数据包在世界各处添加了训练家 NPC,使提升宝可梦等级变得更容易,击败他们还能获得额外奖励!所有训练家的队伍和宝可梦等级都会根据玩家的队伍动态调整,确保无论是新手还是老玩家,每场战斗都能带来充满挑战与乐趣的体验。
重要提示(⚠️) 此数据包需要配合资源包才能正常运行。请确保将 ZIP 文件同时放入你的资源包文件夹和数据包文件夹中。
? 奖励列表 ?
? NPC 生成与奖励 ?
| ? NPC |
? 生物群系/地点 |
? 金钱奖励 |
| Aqua |
草原、高地、丘陵、森林 |
100–200 |
| Artist |
草原、平原、丘陵、森林 |
200–500 |
| Ash |
主世界 |
1000–2000 |
| Backpacker |
草原、高地、丘陵、森林 |
500–1000 |
| Baker |
草原、丘陵、森林 |
100–200 |
| Biker |
主世界 |
200–500 |
| Bird Keeper |
山地、森林、高地 |
200–500 |
| Black Belt |
山地、沙漠、恶地、高地 |
200–500 |
| Boarder |
深海、海岸、海滩、岛屿 |
100–200 |
| Bug Catcher |
森林、草原、丛林 |
200–500 |
| Café Master |
沙地、平原 |
100–200 |
| Dragon Tamer |
山地、山顶、末地、下界山地 |
500–1000 |
| Engineer |
沙地、平原 |
200–500 |
| Firebreather |
下界、洞穴 |
200–500 |
| Fisherman |
海岸、海滩、淡水、岛屿 |
200–500 |
| Garçon |
平原 |
500–1000 |
| Gardener |
草原、高地、丘陵、森林 |
100–200 |
| Golfer |
草原、平原 |
100–200 |
| Guitarist |
山地、山顶 |
200–500 |
| Hiker |
山地、山顶、下界山地 |
500–1000 |
| James |
山地、山顶、草原、高地、丘陵、森林 |
1000–2000 |
| Jessie |
山地、山顶、草原、高地、丘陵、森林 |
1000–2000 |
| Jogger |
草原、高地、丘陵、平原 |
100–200 |
| Magma |
下界、洞穴 |
100–200 |
| Model |
山地、山顶 |
500–1000 |
| Office Worker |
魔法、平原 |
500–1000 |
| Officer |
平原 |
100–200 |
| Pokémon Breeder |
山地、草原、丘陵、平原 |
200–500 |
| Pokémaniac |
阴森、洞穴、沙漠、草原 |
500–1000 |
| Pokéfan |
草原、高地、丘陵、森林 |
200–500 |
| Pokékid |
草原、高地、丘陵、森林 |
100–200 |
| Postman |
平原 |
200–500 |
| Psychic |
魔法、蘑菇、下界真菌 |
500–1000 |
| Rocket Grunt |
下界、洞穴 |
500–1000 |
| Sailor |
海岸、海洋 |
200–500 |
| Schoolboy |
草原、高地、丘陵、森林 |
200–500 |
| Sky Trainer |
山地、山顶、高地、丘陵 |
200–500 |
| Super Nerd |
魔法、蘑菇、末地、下界真菌 |
200–500 |
| Surfer |
海岸、海洋 |
500–1000 |
| Swimmer |
深海、海岸、海滩、岛屿 |
200–500 |
| Tourist |
草原、平原、丘陵、森林 |
100–200 |
| Veteran |
山地、山顶、高地、丘陵 |
500–1000 |
| Youngster |
草原、高地、丘陵、森林 |
100–200 |
? 更改奖励列表 ?
重要提示: 修改数据包对初学者来说可能具有挑战性。请谨慎操作! ⚠️
若要自定义每个训练家给出的物品,你需要将数据包文件夹解压并放入你的数据包目录中。解压后,导航至以下位置:
201TrainersDatapack\data\201\loot_table
在此文件夹中,你将找到一个包含所有奖励的 JSON 文件。
要更改物品,打开 .json 文件并找到如下格式的物品条目:"name": "cobblemon:poke_ball". 例如,如果你想用奇迹糖果替换精灵球的掉落物,请将 "name": "cobblemon:poke_ball" 更改为 "name": "cobblemon:rare_candy".
你可以通过在游戏中按 F3+H 并将鼠标悬停在物品上来查找 Cobblemon 物品的命名空间。
要移除物品,只需删除对应的部分即可:
{
"type": "item",
"weight": 1,
"name": "cobblemon:poke_ball"
}
要添加更多物品,只需新增一个部分:
{
"type": "item",
"weight": 1,
"name": "cobblemon:poke_ball"
}
请记住在每个物品后(最后一个除外)添加逗号 ","。本质上,这是一个由逗号分隔的 JSON 列表。如果你修改了任何这些 .json 文件且奖励不再生效,可能是因为在命名空间中拼错了物品名称,或者使用了 Minecraft 命名空间中不存在的物品。此外,请使用在线 JSON 格式化工具检查你的 .json 文件格式是否正确。
? 为服务器添加金钱奖励 ?
重要提示 (⚠️) 如果你打算在你的服务器上使用该数据包,请先联系我。
如果你在服务器上运行 Impactor,还可以为每位被击败的训练家添加金钱奖励。只需进入此文件夹路径:
201TrainersDatapack\data\cobblemon\behaviours
在此文件夹中,你会看到 5 个 .json 文件,分别对应名为 battle_reward_pokedollars.json、battle_reward_pokedollars2.json、battle_reward_pokedollars3.json、battle_reward_pokedollars4.json 和 battle_reward_pokedollars5.json 的文件。
打开这些文件并将 "defaultValue" 从 "0" 改为 "1":
{
"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"
}
]
}
]
}
然后进入此文件夹路径:
201TrainersDatapack\data\cobblemon\flows\battle_victory
在此文件夹中,你会看到一个名为 npc_battle_end.json 的文件。打开该文件并将设置货币的名称更改为你正在使用的货币名称。要更改,请查找所有引用 impactor:pokedollars 的部分,并将 pokedollars 替换为你选择的货币名称:
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 + ' impactor:pokedollars ' + q.player.username);
q.player.tell('§aYou have received §l' + t.random_dollars + '$§r§a for winning!§r');
});
};
遇到问题?你可以加入 Cobblemon 官方 Discord 服务器,搜索 '201 Trainers' 并在其中提问,或者 alternatively,你可以通过 Discord 私聊我。
? 201 Trainers ?
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.
Important (⚠️) This datapack requires a resource pack to function properly. Make sure to place the ZIP file in both your resourcepacks and datapacks folders.
? Reward List ?
Poke Ball;
Dive Ball;
Dusk Ball;
Fast Ball;
Friend Ball;
Great Ball;
Heal Ball;
Heavy Ball;
Level Ball;
Love Ball;
Lure Ball;
Luxury Ball;
Moon Ball;
Nest Ball;
Net Ball;
Premier Ball;
Quick Ball;
Repeat Ball;
Safari Ball;
Sport Ball;
Timer Ball;
Ultra Ball;
Antidote;
Awakening;
Burn Heal;
Dire hit;
Elixir;
Energy Root;
Ether;
Full Heal;
Full Restore;
Guard Spec;
Heal Powder;
Hyper Potion;
Ice heal;
Max Elixir;
Max Ether;
Max potion;
Max Revive;
Paralyze Heal;
Potion;
Revival Herb;
Revive;
Super Potion;
X Accuracy;
X Attack;
X Defence;
X Special Attack;
X Special Defence;
X Speed;
Medicinal Leek; Metal powder; Quick powder;
Rare Candy;
Calcium;
Carbos;
HP Up;
Iron;
Protein;
Zinc;
Big Root;
Sachet;
Whipped Dream;
Absorb Bulb;
Binding Band;
Bug Gem;
Cell Battery;
Dark Gem;
Dragon Gem;
Electric Gem;
Everstone;
Fairy Gem;
Fighting Gem;
Fire Gem;
Float Stone;
Flying Gem;
Ghost Gem;
Grass Gem;
Ground Gem;
Ice Gem;
Normal Gem;
Poison Gem;
Psychic Gem; Ring Target;
Rock Gem; Snowball;
Steel Gem;
Water Gem;
Shed Shell;
Sticky Barb;
? NPC Spawns and Rewards ?
| ? 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 |
? Change Rewards List ?
Important Note: Modifying datapacks can be challenging for beginners. Proceed with caution! ⚠️
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:
201TrainersDatapack\data\201\loot_table
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: "name": "cobblemon:poke_ball". For example, if you want to replace the pokeball drop with a rare candy, change "name": "cobblemon:poke_ball" to "name": "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:
{
"type": "item",
"weight": 1,
"name": "cobblemon:poke_ball"
}
To add more items, simply add a new section:
{
"type": "item",
"weight": 1,
"name": "cobblemon:poke_ball"
}
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.
? Add Money Rewards for Servers ?
Important (⚠️) If you want to use this datapack on your Server contact me first.
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:
201TrainersDatapack\data\cobblemon\behaviours
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":
{
"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"
}
]
}
]
}
Then go into this folder location:
201TrainersDatapack\data\cobblemon\flows\battle_victory
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:
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 + ' impactor:pokedollars ' + q.player.username);
q.player.tell('§aYou have received §l' + t.random_dollars + '$§r§a for winning!§r');
});
};
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧