A simple mod to provide rewards for completing battles with cobblemon
CobbleBattleRewards is a powerful and highly configurable Fabric mod designed to supercharge your server's economy and player engagement. It provides a robust framework for rewarding players with items and commands for participating in and winning Cobblemon battles and captures.
order and exclude system to create reward priorities. For example, you can make a rare reward for defeating a specific Legendary Pokémon override a more common reward for its type.Manage the mod's settings and view its configuration directly in-game.
| Command | Permission | Description |
|---|---|---|
/cbr reload |
cobblebattlerewards.reload |
Reloads the config.json file from disk without a server restart. |
/cbr listrewards |
cobblebattlerewards.list |
Displays a formatted list of all currently configured rewards directly in chat. |
/cbr listconditions |
cobblebattlerewards.list_conditions |
(Very Useful!) Lists all available Pokémon properties (like type, ability, ivs, etc.) that you can use in the conditions section of the config. |
CobbleBattleRewards features a single, powerful configuration file located at config/cobblebattlerewards/config.json. This file allows you to define every aspect of the reward system.
The config is structured into four main reward categories:
battleWonRewardsbattleLostRewardsbattleForfeitRewardscaptureRewardsWithin each category, you can define any number of unique, named rewards. Here are the standout options for configuring a reward:
| Setting | Description |
|---|---|
type |
The type of reward. Can be "item" to give the player an item, or "command" to execute a server command. |
chance |
The percentage chance (from 0.0 to 100.0) for this reward to be triggered. |
command |
If type is "command", this is the command that will be executed. It supports placeholders like %player% and %pokemon%. |
itemStack |
If type is "item", this is the JSON representation of the item to be given. |
battleTypes |
A list of battle types this reward applies to: "wild", "npc", "pvp". |
conditions |
(Powerful!) A list of conditions the opponent Pokémon must meet. Use /cbr listconditions to see all possibilities. Examples: ["type=ghost"], ["cobblemon:pikachu"]. |
conditionsBlacklist |
If true, this reward will trigger only if the Pokémon does not meet the specified conditions. Perfect for excluding common Pokémon from a general reward pool. |
minLevel & maxLevel |
Defines the level range the opponent Pokémon must be in for the reward to be considered. |
order |
An integer that sets the reward's priority. Lower numbers are processed first. This allows you to have specific rewards (e.g., for Zapdos, order: 1) override more general rewards (e.g., for any Electric type, order: 2). |
excludedRewards |
A list of other reward names that will be blocked from triggering if this reward is successfully given. Essential for creating mutually exclusive rewards. |
cooldown |
The time in seconds a player must wait before they can receive this specific reward again. |
allowedDimensions |
A list of dimension IDs where this reward is active (e.g., ["minecraft:overworld"]). If left empty, it applies to all dimensions. |