WildEncountersDatapack\data\cobblemon\molang\random_spawnIn 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]](/_next/image?url=%2Fapi%2Fproxy-image%3Furl%3Dhttps%253A%252F%252Fcdn.modrinth.com%252Fdata%252FXubzZHZK%252F8642a1ea46e91c99bdd69d85a278b1ce70eabd6b.png&w=256&q=75)
WildEncounters adds wild grass from the Pokémon games.