Cobblemon KO Streak Shiny
This mod is now part of the Cobblemon Unchained project! It will only receive bug fixes going forward. Cobblemon Unchained ensures compatibility between this mod and my other developments related to Pokémon spawning.
How the Victory Streak System Works
When a player defeats a wild Pokémon, if it belongs to the same species as the player's current victory streak, the streak counter increases by 1. If the player defeats a Pokémon of a different species, the streak resets to 1.
Increased Chance of Finding Shiny Pokémon
As the streak of victories over wild Pokémon grows, any Pokémon of that species spawning nearby gains an increased probability of becoming shiny. The chances are organized by threshold values: when a player's streak becomes long enough, they unlock additional opportunities. If multiple players who have reached the threshold for the spawning Pokémon are nearby, the chances of the player with the highest achieved threshold are considered.
Settings
In the configuration, you can change the distance at which a Pokémon considers the player's victory streak when spawning. By default, this is 64 blocks. You can also configure the threshold values: by default, with a streak of 101+ you get 2 chances, 301+ - 3 chances, and 501+ - 4 chances. If there is no player nearby who has reached the threshold, only 1 chance remains. The other part of the probability is determined by the shinyRate parameter in the Cobblemon configuration, which is 8196 by default.
Required Dependencies
Cobblemon
Fabric Language Kotlin
Cloth Config