Перейти к содержимому
Mineforgian

CobbleDollarsCommandShop

CobbleDollars addon for configurable command-driven shops, ideal for servers and NPC-based setups

198 загрузок1 подписчиковLicenseRef-CobbleDollars-Command-Shops-Custom-Licenseneoforge

Обновлён 15 мая 2026 г. · опубликован 14 мая 2026 г.

  • Bank accepted items exemple
  • Bank
  • Tooltip

CobbleDollars Command Shops

CobbleDollars Command Shops is an addon for CobbleDollars. It adds command-driven shops that can be opened by name and fully managed on the server. The mod is built for servers that want more control over shop behavior, stock handling, access rules, and transaction logging without moving gameplay authority to the client.

What it adds

  • multiple custom shops with categories and offers
  • custom prices and custom item counts per offer
  • per-player stock for limited offers
  • unlimited or finite stock
  • automatic restocks with interval or daily reset rules
  • optional purchase bonuses for bulk buys
  • access rules for shops, categories, and offers
  • support for player tags, advancements, dimensions, time ranges, and scoreboard values
  • one global bank for all shops or a local bank per shop
  • precise bank and shop matching with item, stack, tag, mod, match.include, and match.exclude
  • exact stack matching, including item data/components
  • shop enable/disable controls at runtime
  • server-side validation and persistent stock data

Server-side first

This mod is designed to be server-authoritative.

It does not replace CobbleDollars itself, does not replace CobbleDollars NPCs, and does not move shop logic to the client. It only takes over shop sessions opened through this addon.

If the same jar is installed on the client, the mod can also provide optional client-side UI enhancements. The core shop logic still remains on the server.

Commands

Public commands:

  • /cdshops open <shop>
  • /cdshops list
  • /cdshops visibility list

Admin commands (permission level 2):

  • /cdshops open <shop> <targets>
  • /cdshops reload
  • /cdshops restock <shop> all <players>
  • /cdshops restock <shop> offer <offer> <players>
  • /cdshops stock <shop> <player>
  • /cdshops visibility <shop> status
  • /cdshops visibility <shop> enable
  • /cdshops visibility <shop> disable [message]
  • /cdshops stats summary [window]
  • /cdshops stats top <shops|offers|players|items> [window] [limit]
  • /cdshops stats shop <shop> [window]
  • /cdshops stats player <player|uuid> [window]
  • /cdshops stats item <item> [window]
  • /cdshops where

Configuration

On first server start, the mod generates its config files in:

config/cobbledollarscommandshops/
  CONFIG_GUIDE.md
  audit.json
  feedback.json
  global_bank.json
  shops/
    general_store/
      shop.json
    blacksmith/
      shop.json
    explorer/
      shop.json
    syntax_showcase/
      shop.json
      bank.json

Transaction audit logs are written to:

logs/cobbledollarscommandshops/audit.jsonl

The /cdshops stats ... admin commands read the active audit.jsonl file and any rotated .jsonl.zip archives on demand.

Important files for writing shops and banks

If you want to understand how to write a shop.json or bank.json, start with these files:

  • config/cobbledollarscommandshops/CONFIG_GUIDE.md
    Main format reference generated by the mod on first start.
  • config/cobbledollarscommandshops/global_bank.json
    Default bank used as the fallback for all shops.
  • config/cobbledollarscommandshops/shops/syntax_showcase/shop.json
    Full example shop showing the supported matching syntax and conditions.
  • config/cobbledollarscommandshops/shops/syntax_showcase/bank.json
    Example of a shop-specific bank override.

Shop-specific bank files go here:

config/cobbledollarscommandshops/shops/<shop_id>/bank.json

If no shop-specific bank.json exists, the mod uses:

config/cobbledollarscommandshops/global_bank.json

Support and questions

If you find a bug, please report it in the comments or open an issue. You can also contact me directly on CurseForge/Modrinth for more specific questions ! If you want to use or modify this code, please check the license first.

tested with :

  • CobbleDollars-neoforge-2.0.0+Beta-5.1+1.21.1
  • Cobblemon-neoforge-1.7.3+1.21.1
  • CustomNPCs-Unofficial-NeoForge-1.21.1.20251230
  • easy_npc-neoforge-1.21.1-6.14.0

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
1.0.2Релиз1.21.1neoforge15 мая 2026 г.Скачать (338 КБ)
1.0.1Релиз1.21.1neoforge15 мая 2026 г.Скачать (278 КБ)
1.0.0Релиз1.21.1neoforge14 мая 2026 г.Скачать (254 КБ)

Ченджлог

1.0.2Релиз1.21.1 · 15 мая 2026 г.

Feature and reliability update

Highlights

  • Added audit stats commands for server admins.
  • Added new default Cobblemon-themed shops when Cobblemon is installed.
  • Improved the optional client-side accepted-items bank UI.
  • Tightened command permissions and improved transaction safety.

New

  • New admin stats commands for audit history and top activity:
    • /cdshops stats summary
    • /cdshops stats top
    • /cdshops stats shop
    • /cdshops stats player
    • /cdshops stats item
  • New default Cobblemon shops:
    • trainer_supply
    • breeder_corner
    • night_market
  • Better accepted-items bank browsing on the client, with cleaner UI behavior and better JEI compatibility.

Fixes

  • Command permissions are now clearer:
    • public access stays limited to opening a shop for yourself, listing shops, and listing visibility state
    • other /cdshops commands now require admin permission level 2
  • Custom shop buys and custom bank sells are now safer if something fails during the transaction.
  • Deleted default shops are no longer recreated automatically as long as the shops/ folder already exists.

Notes

  • Full technical details, tests, and implementation notes remain in the repository history and docs.
1.0.1Релиз1.21.1 · 15 мая 2026 г.

Maintenance and performance patch

Highlights

  • Lower runtime overhead on large custom shop and bank configurations.
  • Faster shop open and session refresh paths on the heavy benchmark pack used during development.
  • Lower audit log I/O overhead during transactions.
  • Internal test and benchmark coverage expanded to make future regressions easier to catch.

Measured performance notes

  • openShop: about 28% lower average latency and 38% lower p95 latency
  • refreshPlayerSession: about 23% lower average latency and 31% lower p95 latency
  • handleCustomSell: about 12% lower p95 latency

These figures come from the heavy benchmark fixture tracked in docs/PERFORMANCE_HISTORY.md on github.

1.0.0Релиз1.21.1 · 14 мая 2026 г.

Initial file

Комментарии

Загружаем…