
ChickenButtECO
create an economy mod with MySQL support. The mod will provide a base economy system which allows players to buy and sell items using commands like /sell and...
00—neoforgeServer1.21.1mod
ChickenButtECO (server-only)
- Adds a simple economy that works with vanilla clients; no custom registries or client assets required.
- All balances and shop items live in MySQL. The mod creates tables
<table_prefix>balancesand<table_prefix>itemsif they do not exist. - First run writes
config/chickenbutteco.properties; update MySQL host/port/database/username/password, SSL flag, table prefix, and the starting balance there, then use/eco reloador restart the server. - Requires the MySQL JDBC driver on the server classpath (place the MySQL connector JAR in the
modsfolder alongside this mod if your server doesn’t already provide it).
Commands
/balance— Show your balance./balance <player>requires operator level./buy <item> [amount]— Buys items priced in MySQL; charges coins and delivers the items (drops if inventory is full)./sell <item> [amount]— Sells items priced in MySQL; removes items from inventory and pays coins.- Admin commands (op level):
/eco reload,/eco item set <item> <buy_price> <sell_price>,/eco item remove <item>,/eco balance <player> <amount>.
Notes
- Currency uses integer “coins” (no decimals). Prices and balances are stored as BIGINT in MySQL.
- If the database is unreachable or the MySQL driver is missing, commands will fail gracefully and log the cause.