
Keyconomy
An economy datapack based around trial keys. It has shops included!
Screenshots

About this Mod
Keyconomy
Keyconomy is a datapack-based economy based around the Trial Keys added to 1.21+. Requires Retina to run!
Selling Keys
You can sell keys for money using /trigger SellKeys, which will sell trial keys for 25 and ominous keys for 100 by default, straight from your inventory.
Withdraw
You can withdraw money from your account by doing /trigger Withdraw set <amount>, and you'll receive cash items that also get sold back when using the SellKeys command
MakeShop
Looking at a barrel with items in it (It must be 1 type of item) and using trigger MakeShop set <sell_price> will turn it into a shop. You can interact with the shop to see details if you're a customer and restock if you're the owner. You can also hit the shop to either purchase from it if you're a customer or destroy it if you're the owner.
CreativeShop
Same deal as MakeShop, except it can't be restocked, has unlimited items, and can only be destroyed or created if you're in creative.
Config
Sell Price
If you want to change how much a key sells for, you can dodata merge storage keyconomy:config {trial_key:25,ominous_key:100}
Max Stock
If you want to change the max amount of stock a shop can hold at once, you can dodata merge storage keyconomy:config {max_stock:5000}. The default is 5000.
Commands
If you want to disable a certain command, there's a few options. Changing it for everyone is done like this: data modify storage keyconomy:config commands merge value {sell:1b,withdraw:1b,shop:1b}, where 0b will disable the command. Per-player, you can enable it for someone by doing tag <player> add key.shop, and disable it by doing tag <player> add key.no_shop. If you want to undo this, you can do tag <player> remove key.shop, etc.
Developers
The scoreboard for player money is stored in a scoreboard called key.money, and there's a unique player ID stored in key.player.id
Available Versions
How to Install Keyconomy on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set datapack Loader
In the panel under "Egg", select the datapack loader and matching Minecraft version (1.21.1).
Install Mod
Open the mod browser in the dashboard and search for "Keyconomy". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.1, 1.21
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Keyconomy server crashes on startup – what to do?
Most common cause: wrong datapack version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.1). You can switch loaders with one click in the panel.
Is Keyconomy compatible with datapack and fabric and forge and neoforge and quilt?
Keyconomy officially supports datapack, fabric, forge, neoforge, quilt for Minecraft 1.21.1, 1.21. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Keyconomy – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Keyconomy consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Keyconomy with just one click on your server.