截图
介绍
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 do
data 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 do
data 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: <br>, where
data modify storage keyconomy:config commands merge value {sell:1b,withdraw:1b,shop:1b}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
常见问题
Keyconomy 支持哪些 Minecraft 版本?
Keyconomy 支持 Minecraft Java 版 1.21–1.21.1,共 2 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。
Keyconomy 怎么安装?
新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。
Micalobia 的其他作品
查看全部 →Full Slabs
Adds vertical and mixed slabs to minecraft
Full Slabs
Adds vertical slabs and mixed horizontal and vertical slabs to Minecraft.
Better Datapacks
Increases the scope of what can be done with a datapack.
Simple Bricks
Just fills in some of the holes when it comes to when Mojang decided to make stairs/slabs for things.
评论
登录后评论和评分