跳到正文

Tradebox

作者:danpnnstt2021

Adds the ability to buy and sell enchantments / potions in a user-configurable way

收藏

截图

介绍

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

Trade Box is a NeoForge mod for Minecraft 1.21.1 that adds a fully configurable in-game shop system. Players can purchase enchanted books and potions, and sell back unwanted items for a partial refund — all driven by JSON config files with no code changes required.


Blocks

Trade Box

A shop block for purchasing enchanted books. Right-click to open the GUI, browse the list of available enchantments, see what each one costs, and buy if you have the required items in your inventory. Enchantments and their costs are fully defined in tradebox_enchantments.json.

Potion Trade Block

A shop block for purchasing potions. Supports regular, splash, and lingering variants. Empty glass bottles can also be purchased separately. Everything is configured in tradebox_potions.json.

Seller Block

Allows players to sell back enchanted books and potions for a partial refund. The base refund percentage is configurable. Players wearing armor enchanted with Smooth Seller receive a higher refund percentage.


Custom Enchantment: Smooth Seller

  • Can be applied to armor
  • Increases the refund percentage from the Seller Block by a configurable amount per level
  • Maximum level: 15 (configurable)
  • Default: 50% base refund + 10% per level

Configuration

All three JSON config files are generated automatically on first run and can be edited freely. Changes can be applied live using /tradebox reload — no server restart required.

tradebox_enchantments.json

Defines every enchantment available in the Trade Box. Each entry specifies the enchantment ID, level, cost (any items you choose), and whether it appears in the Seller Block. Comes pre-configured with 100+ vanilla enchantments across all levels.

tradebox_potions.json

Defines every potion available in the Potion Trade Block, including regular, splash, and lingering variants. Comes pre-configured with 100+ potion entries covering all vanilla variants including 1.21 additions: Wind Charged, Weaving, Oozing, and Infested.

tradebox_config.json

Controls Seller Block refund behavior:

  • default_refund_percentage — Base refund % (default: 50)
  • enchant_level_increase — % increase per Smooth Seller level (default: 10)
  • max_enchant_level — Maximum Smooth Seller level counted toward refund (default: 15)

Any item in the game registry can be used as currency — not just emeralds.


Admin Commands

Command Description
/tradebox reload Reloads all config files live without a server restart. Reports total entries loaded.
/tradebox export Exports all available enchantments from the game registry to a CSV file. Useful for building your config.

Crafting Recipes

Trade Box

S L S
L X L
S L S
  • S = Stick
  • L = Leather
  • X = Lectern

Potion Trade Block

I G I
G B G
I G I
  • I = Iron Ingot
  • G = Glass
  • B = Brewing Stand

Seller Block

E G E
G A G
E G E
  • E = Emerald
  • G = Gold Ingot
  • A = Anvil

Requirements

  • Minecraft: 1.21.1
  • NeoForge: 21.1.211 or newer
  • No other mod dependencies required

Installation

  1. Install NeoForge for Minecraft 1.21.1
  2. Drop the Trade Box .jar into your mods folder
  3. Launch the game — config files are generated automatically on first run
  4. Edit the JSON config files in your config folder to customize trades
  5. Use /tradebox reload to apply changes without restarting

常见问题

Tradebox 支持哪些 Minecraft 版本?

Tradebox 基于 Minecraft Java 版 1.21.1,使用 NeoForge 加载器。

Tradebox 怎么安装?

点本页「前往下载」拿到整合包文件(Modrinth 的是 .mrpack,CurseForge 的是 .zip),在 PCL2 或 HMCL 启动器里选择「导入整合包」,启动器会自动装好 Minecraft、加载器和全部模组。建议在启动器里给游戏分配 4–6 GB 内存。

Tradebox 开服需要多大内存?

推荐服务器内存 12 GB。在线人数多、或者建了大量机器和区块加载器时,可以再加 2–4 GB。

怎么和朋友一起玩 Tradebox?

点本页的「一键开服」,选好配置后会自动安装 Tradebox 的服务端,几分钟就能开好。把服务器地址发给朋友,大家用同一个版本的整合包连进去就行。

评论

登录后评论和评分

danpnnstt2021 的其他作品

查看全部 →