Description

Information
This Fabric mod adds Tall grass Encounters to Cobblemon, as well as a way to make Wild Spawn Zones and have Encounter Event Animations.You can mark Wild Zones with a Bone (this mod's region selector stick), so that when walking through them you can trigger an encounter with a wild Cobblemon, just like the routes of the main games. You can also play the animation before every wild battle, or force an encounter when walking for the first time into any new biome.
Everything is set from a menu, opened at any time with /wildencounter config. Rules can apply to every dimension at once or to each dimension on its own. You can also manage multiple dimensions and copy one dimension's rules to another.
The mod comes with the Wild Cobblemon Default preset. You can Export your own settings as a new preset, which is saved in config/awildencounter/presets.json.



Encounter Animations
When walking through tall grass anywhere in the world (or in a wild zone) A wild encounter has a chance to trigger, this plays a custom animation, picked to match where the encounter happens, from the Overworld to Water, Underground, the Nether, and even the End!
There are two encounter animation styles:
- Cobblelocke Minecraft: Pokémon inspired animations using a Minecraft style, these are the same as the ones on my other mod, Cobblelocke
- Retro: Black fade ins inspired by the old Pokémon gens
You can also pick one clip per environment, preview each one from the menu, or replace any clip with your own GIF.


Every Wild Battle & Biome Events
- Every Wild Battle: the animation plays before any battle with a wild Cobblemon, however it starts.
- Biome Events: stepping into a biome you have never visited, or a square region of a chosen size, starts an encounter after a few seconds.

Wild Zones
While holding a Bone as an operator or with cheats enabled on single player, you can right click to set one corner and left click to set the other, then crouch twice and the selection becomes a Wild Zone. Every block you walk inside a zone has a chance of starting an encounter, and you can limit that to grass, flowers, seagrass or any blocks or block tags you choose.

While you hold the Bone, zones show as colored outlines. Each one has a floating board with the icons of the Cobblemon that can turn up there right now. Right click a zone to open its menu:
- Name, color and size
- Whitelist / Blacklist by species, forms and groups like
#cobblemon:starter,#cobblemon:legendary,#cobblemon:babyand many others! - Biome Rule: allow only the group members that naturally spawn in that biome, or any Cobblemon.
- Encounter Chance: lets you assign odds to the Cobblemon the zone can produce. You can keep Cobblemon's default odds, assign Common / Uncommon / Rare / Very Rare tiers (60 / 30 / 7 / 3 by default), or set custom weights.
- Spawning: alongside the encounter event chance, the zone spawns its own Cobblemon to the world, with a custom cooldown and cap.

Overlapping zones work too: the zone made last takes priority.



Zone Notifications
Any player that walks into a Wild Zone is shown its name at the top of the screen, along with the Cobblemon they can find there and their rates. You can turn this notification off or hide just the rates in the config.


Species & Levels
Encounters can use Natural Spawns, taking the cobblemon from what Cobblemon would spawn where the player is currently (this takes into account biome, time, weather, height), or Any Species lets anything spawn anywhere, for this reason there's a way to whitelist and blacklist species, both can apply to a whole dimension or per biome. Legendaries can also be toggled off.
Encounter levels can follow Cobblemon's spawn levels, be lower than your strongest party member, close to your party, random in a range, match your strongest party member, or grow with distance from a center point set with coords.



Compatibility
- Requires Cobblemon 1.8.1 or Cobblemon 1.8
- Cobblelocke: fully compatible. Biome Events are overrided by Cobblelocke during a run.
- Cobblemon Repel: no encounters start near a Repel block, while a repel effect is active, or while the player has the
repeltag. - AllTheMons, Missingmons and any other species pack are picked up automatically.

Installing
Drop the jar into mods/ alongside:
- Fabric Loader 0.17.2 or newer
- Fabric API 0.116.6+1.21.1 or newer
- Cobblemon 1.8.1
- Java 21
Install it on both the client and the server. The server runs the zones and encounters, and the client draws the menu, zone outlines, notifications and the animations. A client without it can still play, it just cannot open the menu and watch the event animations.

Configuration
The config file is config/awildencounter/config.json5 and the presets are in presets.json5. New worlds start from these files. Wild Zones are saved with each world.
Commands: /wildencounter config, /wildencounter zones (list and teleport), /wildencounter zone delete <name>, /wildencounter test and /wildencounter reset events [player].
License: The mod's binaries and its source code are licensed under the Mozilla Public License 2.0, allowing public modifications and forks provided that they are also licensed under MPL2.0.
A Wild Cobblemon Appeared! is not affiliated with Pokémon nor Minecraft
Minecraft is a trademark of Mojang Synergies AB / Pokémon is a trademark of Nintendo, Creatures Inc. and GAME FREAK inc.















