CobbleBattleRewards
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.
Dependencies
Features
- Multiple Reward Triggers: Grant rewards for a variety of outcomes, including winning a battle, losing a battle, forfeiting, and successfully capturing a Pokémon.
- All Battle Types Supported: Create unique reward pools for battles against Wild Pokémon, NPC Trainers, and other Players (PvP).
- Flexible Reward System: Reward players with specific items (including full NBT data) or by executing server commands, making it compatible with any economy plugin.
- Advanced Targeting Engine: Assign rewards with pinpoint accuracy. Target Pokémon based on their species, type, level, dimension, and dozens of other specific properties. You can even blacklist conditions to exclude common Pokémon.
- Tiered & Prioritized Rewards: Use a powerful
orderandexcludesystem 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. - Configurable Cooldowns: Prevent reward farming and balance your economy with a configurable cooldown system for each individual reward.
Commands
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. |
Configuration
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:
battleWonRewardsbattleLostRewardsbattleForfeitRewardscaptureRewards
Within 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. |
Совместимость
Создатели
Детали
Лицензия:LGPL-3.0-only
Опубликован:1 год назад
Обновлён:2 месяца назад

