COWMODSКаталог модов

Cobblemon Economy

Mod for adding Economy and Shops fully customisable to a Cobblemon Modpack

Автор: Ryvexam45,4 тыс.11обновлён 21 сент. 2026 г.
ЭкономикаУправлениеУтилиты

Описание

Cobblemon Economy

Minecraft Loader Discord Economy Bridge Server Ready

Cobblemon Economy is the all-in-one economy core for Cobblemon servers. It gives you modern NPC shops, dual currencies, a full Quest NPC progression layer, and a compatibility bridge so you can keep mod compatibility while still using CobEco as your main economy.

Why Cobblemon Economy

  • One economy core for your server instead of fragmented balances.
  • Bridge support for CobbleDollars and Impactor, so many existing economy-dependent mods keep working.
  • Main-currency switch with per-world config (cobeco, cobbledollars, impactor).
  • PvE progression rewards (capture, battle, raid dens, battle tower) plus rotating quest boards.
  • Production-friendly: JSON config, hot reload tools, SQLite persistence.

Discord (Support)

Join here: https://discord.gg/zxZXcaTHwe

What You Get

  • PokeDollars + PCO currencies
  • Buy and sell NPC shops with pagination
  • Quest NPCs with configurable mission boards
  • Command-based shop items (sell commands, not only items)
  • Capture/discovery/battle rewards + multipliers
  • Raid Dens reward compatibility
  • Battle Tower PCO rewards + completion bonus
  • Cross-economy bridge + API sync support
  • Switchable main backend: cobeco, cobbledollars, impactor (per world)

Quest NPC System (0.0.16)

  • One NPC entity, two roles: SHOP or QUEST (no duplicate entity type).
  • Per-world quest files with full data-driven behavior:
    • quests.json: objectives, rewards, repeatability, cooldowns, prerequisites.
    • quest_npcs.json: NPC pool, max active quests, visible board size, rotation strategy.
  • Quest objective coverage includes:
    • Capture filters (species, type, ball, dimension/dimensions, shiny, labels).
    • Progression events (battle_win, raid_win, tower_win, fossil_revive).
  • Reward model supports:
    • Currency rewards (pokedollars, pco) and optional command rewards per quest.
    • Prerequisite chains, repeat policies, time limits, and cooldown lockouts.
  • Custom quest board UX:
    • Up to 4 missions visible by default (configurable per NPC).
    • Detailed objective text (species/type/ball/location/shiny/labels).
    • Time remaining, cooldown remaining, and clear action states.
  • Rotation system:
    • Shared board for all players or per-player board (configurable via sharedRotation).
    • Rotation mode is exactly MIDNIGHT or HOURS (rotationMode).
    • MIDNIGHT: rotates on next local server midnight.
    • HOURS: rotates every rotationHours block (minimum 1).
    • Cancelled/expired quests can be blocked until next rotation.

How To Set A Quest NPC (Summon + Bind)

  • Spawn a shopkeeper NPC:
    • Use the spawn egg cobblemon-economy:shopkeeper_spawn_egg, or
    • Run /summon cobblemon-economy:shopkeeper.
  • Check available quest NPC profiles with /eco questnpc list.
  • Get a Quest NPC setter item with /eco questnpc get <id>.
  • Right-click the spawned shopkeeper with that setter to switch it to QUEST role and bind questNpcId.
  • Optional: switch the same NPC back to a normal shop with /eco shop get <shopId> then right-click.

Minimal quest_npcs.json Example

{
  "quest_npcs": {
    "safari_guide": {
      "displayName": "Safari Guide",
      "skin": "shopkeeper",
      "maxActive": 2,
      "visibleQuests": 4,
      "sharedRotation": true,
      "rotationMode": "MIDNIGHT",
      "rotationHours": 24,
      "questPool": ["safari_water_10", "safari_bug_12"]
    }
  }
}

Configuration Warning

  • Configuration support is limited.
  • No hand-holding for custom config troubleshooting: test changes incrementally on a staging world/server.
  • If a custom setup fails, validate JSON syntax, quest IDs, npc IDs, and objective keys first.

Installation

  1. Put cobblemon-economy-0.0.16.jar in mods/.
  2. Start the server once.
  3. Edit world/config/cobblemon-economy/config.json.
  4. Restart server (or /eco reload for config-only edits).

File Layout (Per World)

  • world/config/cobblemon-economy/config.json
  • world/config/cobblemon-economy/shops.json
  • world/config/cobblemon-economy/quests.json
  • world/config/cobblemon-economy/quest_npcs.json
  • world/config/cobblemon-economy/milestone.json
  • world/config/cobblemon-economy/economy.db
  • world/config/cobblemon-economy/quests.db
  • world/config/cobblemon-economy/skins/*.png

main_currency is also per-world because it lives in this world config folder.

How Each Config Works

  • config.json
    • Global economy behavior (currencies, rewards, multipliers, profiling).
    • Does not need to contain shops anymore.
  • shops.json
    • All shop definitions (title, currency, items, limits, linked shops, etc.).
    • Backward compatibility: if this file is missing, the mod loads legacy config.json.shops and auto-creates shops.json.
  • quests.json
    • Quest definitions and objectives.
    • Supports capture filters (species, type, ball, dimension or dimensions, shiny, labels).
    • Supports event objectives: battle_win, raid_win, tower_win, fossil_revive.
    • Per-quest control: repeatable, repeatPolicy, cooldownMinutes, timeLimitMinutes, requiresCompleted.
    • Supports rewards (pokedollars, pco, optional command list).
  • quest_npcs.json
    • Quest NPC definitions (display name, skin, dialogue lines, quest pool, max active quests).
    • Board/rotation control: visibleQuests, sharedRotation, rotationMode (MIDNIGHT/HOURS), rotationHours.
    • One NPC can offer a list of multiple quests via questPool.
  • milestone.json
    • Unique-capture milestone rewards.

Quick Start (5 Minutes)

  1. Start server once to generate defaults.
  2. Open config.json and set:
{
  "main_currency": "cobeco"
}
  1. Add one test item to any shop.
  2. Join server and run /bal.
  3. Buy/sell to confirm economy flow.

Commands

Player

  • /bal or /balance
  • /pco
  • /pay <player> <amount>

Admin

  • /eco reload
  • /eco shop list
  • /eco shop get <id>
  • /eco quest list
  • /eco questnpc list
  • /eco questnpc get <id>
  • /eco skin <name>
  • /eco item
  • /balance <player> <add|remove|set> <amount>
  • /pco <player> <add|remove|set> <amount>

Main Currency Modes

Configure in config.json:

{
  "main_currency": "cobeco"
}

Valid values:

  • cobeco (default)
  • cobbledollars
  • impactor

Behavior:

  • cobeco: CobEco DB is authoritative; balances are mirrored to CobbleDollars and Impactor when present, and bridge hooks keep external transactions synced back into CobEco.
  • cobbledollars: CobEco balance operations route to CobbleDollars.
  • impactor: CobEco balance operations route to Impactor primary currency.

In practice: you can choose CobEco as your main economy and still keep broad compatibility with mods that expect CobbleDollars/Impactor-style flows.

Rewards

Main reward keys:

  • battleVictoryReward
  • raidDenVictoryReward
  • captureReward
  • newDiscoveryReward
  • battleVictoryPcoReward
  • battleTowerCompletionPcoBonus

Multipliers:

  • shinyMultiplier
  • radiantMultiplier
  • legendaryMultiplier
  • paradoxMultiplier

Milestones

File: world/config/cobblemon-economy/milestone.json

Example:

{ "10": 300, "50": 700, "100": 1500, "200": 3000 }

Shop Item Types

Standard item

{ "id": "minecraft:diamond", "name": "Diamond", "price": 1000 }

Component item

{
  "id": "academy:booster_pack",
  "name": "Booster Pack",
  "price": 200,
  "components": {
    "academy:booster_pack": "\"base\""
  }
}

Command item

{
  "type": "command",
  "command": "crate key give vote 1 %player%",
  "price": 100,
  "displayItem": {
    "material": "supplementaries:key",
    "displayname": "Vote Crate Key",
    "enchantEffect": true
  }
}

Integrations

  • CobbleDollars (bridge + conversion, transaction sync support)
  • Impactor (bridge + conversion, transaction sync support)
  • Cobblemon Raid Dens (raid win rewards)
  • Cobblemon Battle Tower (PCO rewards on tower wins + completion bonus)
  • Star Academy (optional)
  • Placeholder API (optional)
  • YAWP (optional)

Placeholder API

Recommended namespace: cobeco

  • cobeco:balance
  • cobeco:balance_symbol
  • cobeco:pco
  • cobeco:pco_symbol

Troubleshooting

  • Command missing after update: restart server fully (not only /eco reload).
  • Economy bridge not active: verify target mod is loaded and version-compatible.
  • Wrong backend behavior: check main_currency in world config.
  • Existing world does not show new default quest pools: your quests.json / quest_npcs.json already exists; merge manually or regenerate after backup.

Need Help?

Discord support: https://discord.gg/zxZXcaTHwe

Acknowledgements

Thanks to Rikunji for their contributions to the project.

Галерея

Последние версии

Все версии →
release

Cobblemon Economy 0.0.19

0.0.19
21 сент. 2026 г.3,9 тыс.Minecraft: 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9fabric
Скачать
Что нового
### Fixed - Fixed Impactor economy support on Fabric servers.
release

Cobblemon Economy 0.0.18

0.0.18
20 сент. 2026 г.937Minecraft: 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9fabric
Скачать
Что нового
### Added - **Full trainer previews:** battle quests now show the supplied trainer skins in quest cards and the detail preview. - **Prerequisite visibility:** locked quests now show the missing prerequisite quests in the quest-board tooltip. - **Separated JSON configuration:** shop definitions now have a documented authoritative home in `shops.json`, while `config.json` contains global economy settings. Quest definitions, quest NPCs, milestones, and quest-board bindings remain in their own files. - **Persistence compatibility layer:** economy and quest SQLite databases now use versioned, transactional migrations with `.bak` backups and safe refusal of unknown future schemas. - **Safe configuration writes:** JSON files are written atomically, backed up before replacement, and malformed files are quarantined before defaults are regenerated. - Added persistence architecture diagrams, an operator migration/recovery guide, and a tested release compatibility matrix for JARs `0.0.13` through `0.0.18`. ### Fixed - Quest-board quests with unmet prerequisites are no longer displayed as available; the missing requirements are clearly identified. - **Cobblemon 1.7/1.8 Pokédex compatibility:** capture and discovery rewards now recognize both Cobblemon 1.7's `CAUGHT` status and Cobblemon 1.8+'s `OWNED` status without linking to a removed enum constant. - **Cobblemon 1.7/1.8 model preview compatibility:** quest-board Pokémon previews select the appropriate `ModelWidget` constructor at runtime after Cobblemon 1.8 added the block-light parameter. ### Changed - The development dependency target is the Fabric Cobblemon 1.8.1 artifact, Fabric Loader 0.17.2, and Fabric API 0.116.6+1.21.1; the published JAR still accepts Cobblemon 1.7.1 and newer when paired with that version's compatible Fabric Loader/API. - The release version is now `0.0.18`.
release

Cobblemon Economy 0.0.17

0.0.17
13 мар. 2026 г.23,8 тыс.Minecraft: 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9fabric
Скачать
release

Cobblemon Economy 0.0.16

0.0.16
9 февр. 2026 г.15,4 тыс.Minecraft: 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9fabric
Скачать
Что нового
## [0.0.16] - 2026-02-08 ### Added - **Quest NPC System:** Added configurable quest NPC behavior on the existing `shopkeeper` entity (no duplicate entity type). - NPC role modes: `SHOP` and `QUEST`. - New admin tools/commands: `/eco quest list`, `/eco questnpc list`, `/eco questnpc get <id>`. - New quest GUI flow with accept/progress/claim/cancel states and dialogue lines. - **Quest Configs:** Added per-world quest files: - `quests.json` for quest definitions/objectives/rewards. - `quest_npcs.json` for quest NPC definitions (name, skin, dialogue, quest pool, max active). - **Quest Progression Tracking:** New SQLite persistence (`quests.db`) for per-player quest state and objective progress. - **Default Quest Content:** Added a large default quest pack including: - Capture by type/species/dimension/shiny. - Capture with specific balls. - Capture specific species with specific balls. - Label-based targets (radiant/paradox/legendary/mythical). - Battle win, raid win, tower win, and fossil-revive objectives. - Themed pools for Safari, Fisherman, Explorer, Duel, Ballistics, and Fossil Curator NPCs. - **Quest Rotation & Scheduling:** - Daily board/rotation with capped visible missions (default 4). - Supports shared rotation for all players and configurable rotation windows (`MIDNIGHT` or `HOURS`). - Cooldown/availability can be tied to the next board rotation. - **Quest Rules:** - `repeatable`, `cooldownMinutes`, `timeLimitMinutes`, and `requiresCompleted` prerequisite chains. - Paid cancellation flow with confirmation (double right-click) and fee (`1000` by default). - Cancelled/expired quests can be locked until next rotation. - **Quest UX/Feedback:** - Time remaining and cooldown remaining displayed in GUI. - Clear success/error messages (accepted, claim ready/not ready, too many active quests, cooldown, locked, prerequisites missing, cancel rules). ### Changed - **Config Split for Shops:** Shop definitions are now separated into `world/config/cobblemon-economy/shops.json`, while economy/global options stay in `world/config/cobblemon-economy/config.json`. - **Automatic Migration:** On first boot after update, if `shops.json` is missing, legacy `config.json.shops` is read and exported to `shops.json` automatically. - **Reload/Admin Workflow:** Shop edits should now be done in `shops.json` (not `config.json`) and reloaded with `/eco reload`. - **Quest UI:** Moved to a custom 9x6 board-style layout with focused mission cards and detailed objective wording. - **Quest Copy/Localization:** Expanded and polished EN/FR translations for quest statuses, objective details, filters, and system messages. - **Placeholder API Compatibility:** Integration now supports both legacy and current PB4 Placeholder API class/package variants. - **Placeholder Namespace Focus:** Placeholder registration now targets the `cobeco` namespace for consistency. - **Display Formatting:** Balance and PCO placeholders are now rendered as rounded whole numbers. ### Fixed - **Duplicate Capture Rewards:** Added capture reward de-duplication guard for duplicate capture callbacks. - **NPC Nameplate Visibility:** Fully disabled rendered nameplates to prevent residual text above NPC heads. - **Quest Dialogue Spam:** Added throttling and non-spam refresh behavior when the quest GUI reopens. ### Compatibility - **Backward Compatible:** Existing worlds/configs continue to work: - Legacy worlds with inline `config.json.shops` continue to load. - `shops.json` is generated from legacy shop data when missing. - If both formats exist, `shops.json` is the authoritative shop source. - Existing NPCs default to `SHOP` role unless explicitly assigned as quest NPCs. - **TAB Integration:** Added optional TAB placeholder registration with auto-reload-safe hooks. - New placeholders: `%cobeco_balance%`, `%cobeco_balance_symbol%`, `%cobeco_pco%`, `%cobeco_pco_symbol%`, `%cobeco_unique_captures%`. - **Unique Capture Placeholder Support:** Added `unique_captures` support to Placeholder API placeholders. - Reads live Pokedex data when available and persists capture counts for offline display.
release

Cobblemon Economy 0.0.13

0.0.13
28 янв. 2026 г.1,2 тыс.Minecraft: 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9fabric
Скачать
Что нового
## [0.0.13] - 2026-01-28 ### Added - **Purchase limits:** Per-item buy limits with optional cooldowns (minutes) and UI display of remaining quota. - **Capture reward config:** New `captureReward` setting, defaulting to `battleVictoryReward` if missing. - **Capture milestones:** Configurable rewards for unique-capture counts. ### Changed - **Default shops:** Added limited items for Battle Rewards/Black Market and removed emoji titles. - **Booster default item:** Switched the default booster entry to components-based config and updated docs. - **Item parsing:** More robust parsing for component-based item IDs (datapack/mod items). - **Milestones config:** Capture milestones now live in `milestone.json`. ### Fixed - **Name cleanup:** Clears persisted default shopkeeper names from older versions.
release

Cobblemon Economy 0.0.11

0.0.11
27 янв. 2026 г.79Minecraft: 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9fabric
Скачать