截图
介绍

🟢 WildEncounters ⚪
WildEncounters in the Cobblemon mod. This datapack brings the iconic Wild Grass mechanic from Pokémon into Minecraft, allowing players to encounter random wild Pokémon while walking through tall grass!
⚙️ How it works 📖


By walking into a small patch of grass there is a small chance for a wild Pokémon to appear. These Pokémon will spawn right near the player, adding an exciting and unpredictable element to your exploration. Customize the types of Pokémon that can appear and their spawn rates. Whether you’re recreating a classic Pokémon experience or adding a unique twist to your Minecraft world, this datapack will bring your adventures to life!
🕒 WildEncounters commands 🛠️
- You can use /function wildencounters:change_cooldown to change the cooldown of the wild encounters. To change the time simply left click on the + or – to add or remove time to the cooldown. The default time is 21 ticks or 1 second in real time (the 1 extra tick that is added is so when you want the encounters to have no cooldown, the timer can detect if the cooldown has reset or not). Be aware to not change the cooldown whilst a player has their timer running or it can cause bugs;
- You can use /function wildencounters:reset_cooldown to reset the cooldown to its original state (21 ticks or 1 second). This command can be useful if the cooldown gets bugged;
- You can use /function wildencounters:uninstall to uninstall the datapack. After running this command remove the datapack from your datapack’s folder and run /reload;
📝 Change Pokémon 📝
Important Note: Modifying datapacks can be challenging for beginners. Proceed with caution! ⚠️
To customize the Pokémon that spawn, you’ll need to have the datapack folder unzipped and placed in your datapacks directory. Once unzipped, navigate to the following location:
WildEncountersDatapack\data\cobblemon\molang\random_spawn
In this file, you’ll find a list of all the Pokémon that can spawn in the grass.
To change a Pokémon from the list change this part of the file:
t.roll == 1 ? { q.run_command(‘pokespawnat ‘ + q.player.x + ‘ ‘ + q.player.y + ‘ ‘ + q.player.z + ‘ rattata lvl=’ + t.random_level); q.player.tell(‘§aA wild Rattata has appeared!’); return 1; };
If you wanted to change the Pokémon to Pikachu you’d change the part of the function to this:
t.roll == 1 ? { q.run_command(‘pokespawnat ‘ + q.player.x + ‘ ‘ + q.player.y + ‘ ‘ + q.player.z + ‘ pikachu lvl=’ + t.random_level); q.player.tell(‘§aA wild Pikachu has appeared!’); return 1; };
If you want to change the level at which a Pokémon spawns, you’d only change the lvl= part to something like lvl=10, removing “+ t.random_level”. Don’t forget to close the ‘ after lvl=10.
You can also change the chance for a Pokémon to spawn by modifying this line: t.roll = math.random_integer(1, 720);. The chance of a Pokémon spawning are 36/720, or around 5%. You can change the chance of a Pokémon spawning by changing the right value 720 to something else.
To add more Pokémon just add these lines to the spawner file with the correct values:
t.roll == 36 ? { q.run_command(‘pokespawnat ‘ + q.player.x + ‘ ‘ + q.player.y + ‘ ‘ + q.player.z + ‘ arceus lvl=’ + t.random_level); q.player.tell(‘§aA wild Arceus has appeared!’); return 1; };
If the last value is 36 the next ones will be 37 and so on.
Have some issues? You can join the Official Cobblemon discord server, search for ‘WildEncounters’ and ask your questions there, or alternatively, you can DM me on discord.
常见问题
WildEncounters [Cobblemon] 支持哪些 Minecraft 版本?
WildEncounters [Cobblemon] 支持 Minecraft Java 版 1.21.1。下载时注意选择和你游戏版本一致的文件。
WildEncounters [Cobblemon] 怎么安装?
新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。
Quim201 的其他作品
查看全部 →PokeLoot [Cobblemon]
想在 Cobblemon 中获得 PokéLoot?别再等了!这是一个简单的数据包,让你想要的所有战利品都成为现实。
MoreRecipes [Cobblemon]
MoreRecipes 旨在为热门整合包 Cobblemon 添加一些实用配方。这个数据包为你带来你一直想要的合成配方,为你的 Cobblemon 冒险增添更多可能性。
SwapBallsReborn [Cobblemon]
SwapBallsReborn let's you swap your Pokémon's catch ball in survival mode.
Trainers 201 [Cobblemon]
This datapack introduces Trainer NPCs that roam the world, offering players the chance to challenge them in battle and earn exciting rewards!


评论
登录后评论和评分