跳到正文

Barrel Shops

作者:muriplz

Virtual balance + Player/Admin shops!

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Dependencies:

Requires you to install https://modrinth.com/mod/mysql-driver/version/9.1.0

Commands:

  • /balance [player]: shows your balance if no player given, if not shows their balance
  • /balancetop [page]: shows the leaderboard of balances
  • /balancegive <player> <amount>: admin command, requires OP
  • /pay <player> <amount>: transfers money

Config.json

/config/barrelshops/config.json

{
  "db-url": "jdbc:mysql://HOST:PORT/DB_NAME",
  "db-user": "USER",
  "db-password": "PASSWORD",
  "c1": "The balance a new player starts with",
  "onboarding-balance": 10,
  "c2": "Passive income over time, every X minutes a player gets $Y",
  "passive-income-interval-minutes": 30,
  "c3": "Set to -1 to disable passive income",
  "passive-income-amount": 5
}

You need to run the mod once, and set up the MySQL credentials, then start again the server.

Shop creation (Support with NBT: Enchantments, etc)

  1. Place a barrel
  2. Put inside the item you want to buy/sell, and the amount too, for example 15 apples.
  3. put a sign on any side of the barrel
  4. put in the first line [BUY], [SELL], [ADMINBUY] or [ADMINSELL] (admin shops require OP to set up or destroy)
  5. put in the last line (4th) the price, for example 124
  6. Done! the sign should be given some color and you can now put stock onto it or take it out (if non admin) and players will be able to use it!

常见问题

Barrel Shops 支持哪些 Minecraft 版本?

Barrel Shops 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Barrel Shops 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

muriplz 的其他作品

查看全部 →