BTD Shop & Sell
BTD Shop & Sell 是一款适用于 Minecraft Java Edition 1.20.1 的 Fabric 经济模组。
它通过 Impactor 经济系统,提供了易于使用的图形化 /shop 和 /sell 菜单。
功能特性
- 使用双格箱子界面的
/shop 购买界面
- 使用双格箱子界面的
/sell 出售界面
- 使用玩家自己的头颅显示余额
- 支持购买单个物品或完整的一组(Stack)
- 安全退回不支持的物品
- 关闭出售菜单时退回未售出的物品
- 预设了购买和出售价格
- 自动注册仅原版的食物和方块
- 可选支持选定的模组物品
商店分类
- 原材料 (Ingredients)
- 方块 (Blocks)
- 战斗 (Combat)
- 食物 (Food)
- 红石 (Redstone)
- 功能性物品 (Functional items)
命令
| 命令 |
描述 |
/shop |
打开购买菜单 |
/sell |
打开出售菜单 |
出售机制
- 运行
/sell。
- 将受支持的物品放入出售区域。
- 点击青绿色 Sell 按钮。
- 受支持的物品被移除。
- 金钱存入玩家的 Impactor 余额中。
- 不受支持的物品会被安全退回。
- 关闭菜单会取消交易并退回所有未售出的物品。
要求
必需
- Minecraft Java Edition 1.20.1
- Fabric Loader
- Fabric API
- Impactor
BTD Shop & Sell 必须同时安装在服务器端和每个连接玩家的客户端上。
Impactor 必须在服务器上安装,用于存储余额和处理经济交易。
安装
服务器端
- 为 Minecraft 1.20.1 安装 Fabric Loader。
- 安装 Fabric API。
- 安装 Impactor。
- 将 BTD Shop & Sell JAR 文件放入服务器的
mods 文件夹中。
- 完全重启服务器。
客户端
- 为 Minecraft 1.20.1 安装 Fabric Loader。
- 安装 Fabric API。
- 将 BTD Shop & Sell JAR 文件放入客户端的
.minecraft/mods 文件夹中。
- 完全重启 Minecraft。
安装或替换模组后请勿使用 /reload。
定价
版本 1.0.0 使用存储在模组内的预设价格。
基础出售价格包括:
| 物品 |
出售价格 |
| Copper Ingot |
$2.50 |
| Iron Ingot |
$5.00 |
| Gold Ingot |
$5.00 |
| Diamond |
$10.00 |
| Emerald |
$5.00 |
其他出售价格根据其配置的购买价格计算得出。
价格配置
版本 1.0.0 目前不包含外部配置文件。
希望更改价格的服务器所有者必须编辑 ShopItems.java 并重新构建模组。
未来更新计划加入外部价格配置功能。
模组兼容性
自动注册的食物和方块仅限于原版 minecraft: 命名空间中的物品。
模组物品不会自动添加到商店中。模组物品必须在购买前明确获得支持才能进行买卖。
VinURL 兼容性
当安装了 VinURL 时,包含对 VinURL Custom Record 的可选支持。
VinURL 对于模组的其余部分并非必需,且不与 BTD Shop & Sell 捆绑或重新分发。
开源
BTD Shop & Sell 基于 MIT 许可证开源。
您可以根据许可证条款查看、下载、修改、构建和重新分发源代码。
从源代码构建
下载或克隆 GitHub 仓库。
Windows
.\gradlew.bat clean build
BTD Shop & Sell
BTD Shop & Sell is a Fabric economy mod for Minecraft Java Edition 1.20.1.
It adds easy-to-use graphical /shop and /sell menus powered by the Impactor economy system.
Features
- Double-chest
/shop buying interface
- Double-chest
/sell selling interface
- Player balance display using the player’s own head
- Buy individual items or complete stacks
- Safely returns unsupported items
- Returns unsold items when the sell menu is closed
- Preconfigured buy and sell prices
- Vanilla-only automatic food and block registration
- Optional support for selected modded items
Shop categories
- Ingredients
- Blocks
- Combat
- Food
- Redstone
- Functional items
Commands
| Command |
Description |
/shop |
Opens the buying menu |
/sell |
Opens the selling menu |
How selling works
- Run
/sell.
- Place supported items inside the selling area.
- Click the lime Sell button.
- Supported items are removed.
- The money is deposited into the player’s Impactor balance.
- Unsupported items are returned safely.
- Closing the menu cancels the sale and returns all unsold items.
Requirements
Required
- Minecraft Java Edition 1.20.1
- Fabric Loader
- Fabric API
- Impactor
BTD Shop & Sell must be installed on both the server and every connecting player’s client.
Impactor is required on the server to store balances and process economy transactions.
Installation
Server
- Install Fabric Loader for Minecraft 1.20.1.
- Install Fabric API.
- Install Impactor.
- Place the BTD Shop & Sell JAR inside the server’s
mods folder.
- Fully restart the server.
Client
- Install Fabric Loader for Minecraft 1.20.1.
- Install Fabric API.
- Place the BTD Shop & Sell JAR inside the client’s
.minecraft/mods folder.
- Fully restart Minecraft.
Do not use /reload after installing or replacing the mod.
Pricing
Version 1.0.0 uses preconfigured prices stored inside the mod.
Base sell prices include:
| Item |
Sell price |
| Copper Ingot |
$2.50 |
| Iron Ingot |
$5.00 |
| Gold Ingot |
$5.00 |
| Diamond |
$10.00 |
| Emerald |
$5.00 |
Other sell prices are calculated from their configured buying prices.
Price configuration
Version 1.0.0 does not currently include an external configuration file.
Server owners who want to change prices must edit ShopItems.java and rebuild the mod.
External price configuration is planned for a future update.
Mod compatibility
Automatically registered foods and blocks are restricted to items in the vanilla minecraft: namespace.
Modded items are not automatically added to the shop. A modded item must be explicitly supported before it can be bought or sold.
VinURL compatibility
Optional support is included for the VinURL Custom Record when VinURL is installed.
VinURL is not required for the rest of the mod and is not bundled or redistributed with BTD Shop & Sell.
Open source
BTD Shop & Sell is open source under the MIT License.
You may view, download, modify, build, and redistribute the source code under the terms of the license.
Building from source
Download or clone the GitHub repository.
Windows
.\gradlew.bat clean build
评论 0
登录后参与评分
还没有评论,来抢沙发吧