A clean and simple Cobblemon side mod that adds the out-of-battle effect for the Pickup ability from the main games, then goes a little overboard with customization potential. The logic relies on loot tables specific to the mod that can be overridden by datapacks at data/pickup/loot_tables/gameplay
, for ease of customization. For example, to customize the loot table for Pickup, you'd make a datapack that overrides data/pickup/loot_tables/gameplay/pickup.json
. The mod has built-in support for Pickup and Honey Gather.
After a party wins a battle, each party member with an ability that has a loot table associated with it (Pickup and Honey Gather by default) may trigger its effect and receive an item in their held slot. The default settings for Pickup offer a 10% chance to pick an item from the Pokémon Ruby, Sapphire, and Colosseum set of possibilities. The default settings for Honey Gather offer a 10% chance to get Minecraft's Honey Bottle. If a party member is already holding an item, the effect does not trigger.
In the config:
debug
: Turn on logs. By default, it'sfalse
, which turns it off. Change it totrue
to turn debug on.