Trade Everything
专为 Dungeon Train 打造 —— 适用于任何场景。 Trade Everything 最初是作为 Dungeon Train 模组的配套模组而创建的,该模组中拥有无限生成的程序化列车需要一个相匹配的经济系统。但它并不依赖 Dungeon Train —— 将其放入任何整合包或原版加模组(vanilla-plus)世界中,所有村民都会立即成为通用商人。
功能介绍
每个村民(包括流浪商人)在其交易列表的最上方都会获得一个额外的交易槽位:Trade Anything(万物皆可交易)。
将世界中的任何物品放入其中,村民就会为你提供公平的物品交换,使用他们真正需要的商品——煤炭、小麦、纸张、铁锭、绿宝石等,取决于该村民购买什么。再也不用囤积那些无法售出的垃圾箱子了。那堆圆石、那把半坏的附魔镐、那堆腐肉——现在它们都有价格了。
价格并非随意设定。每件物品的价值都基于其真正的价值:
- 稀有度设定了基础值(普通物品 ≈ 16 个单位兑换 1 个绿宝石)。
- 合成与锻造配方会递归求解——一把钻石镐的价值等于其钻石和木棍的价值之和;一把下界合金剑的价值等于其原钻石剑加上升级所需的锭和模板的价值。
- 耐久度很重要——一件几乎损坏的工具只值完好工具的一小部分,且数值会平滑地随修复程度恢复至全额价值。
- 附魔增加真实价值——每级约使溢价翻倍,因此一本锋利 V 的书远比锋利 I 值钱。
高价值物品以绿宝石结算,而真正珍贵的物品(附魔下界合金装备、极品装备)则以绿宝石块结算。
使用方法
- 右键点击任意村民打开其交易界面。
- 第一行是 Trade Anything 槽位 —— 在你使用前,它会显示一个标有 "Trade Anything" 的箱子图标。
- 投入任意物品到左侧的支付槽位。交易报价会立即重写,显示该村民想要多少这种物品以及愿意支付多少。
- 像正常村民交易一样接受交易。
就这么简单。无需命令,无需配置,无需合成任何东西。模组安装完成后即刻生效。
消耗绿宝石块
如果你携带绿宝石块并购买以绿宝石计价的商品,模组会自动精确破坏足够数量的绿宝石块来覆盖成本,并将找零以绿宝石形式返还给你——因此你的块状货币可以在任何村民交易中无缝使用。
将装备卖回给村民
村民会以略低于其售价的价格回购自己的库存,这样你就可以退回那些不需要的盔甲。折扣(通过治愈僵尸村民或村庄英雄效果获得)绝不会导致利用漏洞——回购价格始终追踪实时价格。
特性与设计
- 适用于村民和流浪商人(流浪商人的功能可配置)。
- 精确物品匹配 —— 已附魔、受损、命名或修剪过的物品都会被精确估值并视为各自独特的商品进行匹配。
- 无职业经验获取,无补货副作用 —— Trade Anything 槽位永远不会提升村民的职业等级,也不会干扰其正常交易。其报价不会保存到村民数据中,因此不会膨胀你的世界文件体积。
- 公平且防剥削的经济系统 —— 村民不会购买绿宝石或他们已经购买的大宗商品(这些属于他们的真实交易),且支付率带有商人利润空间,防止你通过循环交易免费获利。
- 完全服务端运行 —— 安装在专用服务器上时,所有连接的原版客户端会自动获得此功能。在单人游戏中,集成服务器涵盖此功能。(列为 client: unsupported / server: required —— 原因如下:客户端不需要任何东西。)
- 多加载器支持 —— Fabric、Forge 和 NeoForge,Minecraft 1.21.1。
配置
首次启动时会生成配置文件 config/tradeeverything.json。所有内容均可调整:
| 设置项 | 控制内容 |
|---|---|
rarity_values_sixteenths |
各稀有度tier的基础价值(以 1/16 绿宝石为单位) |
item_overrides_sixteenths |
单个物品的价值覆盖(按物品 ID) |
result_multiplier |
支付率 —— 村民的利润率(默认 0.75) |
max_cost_count / max_result_count |
交易数量上限 |
derive_values_from_recipes |
切换基于配方/锻造的估值模式 |
enchantment_value_per_level_sixteenths |
每个附魔等级的价值 |
allow_undervalued_trades |
是否允许出售近乎无价值的物品 |
enable_wandering_trader |
是否给予流浪商人该槽位 |
数值单位为绿宝石的十六分之一:16 = 一个绿宝石,1 = 六分之一(即 16 个该物品可兑换一个绿宝石的价值)。
供模组开发者使用
Trade Everything 暴露了一个小型 Java API (games.brennan.tradeeverything.api.TradeEverythingApi),以便其他模组可以接入经济系统而无需更新 Trade Everything:
registerValueProvider—— 为你的自定义物品提供专属价值(Dungeon Train 使用此项为其叙事书籍定价)。setItemOverride—— 在运行时覆盖任意物品的价值。registerBuyItemSelector—— 控制特定村民支付的物品类型。getValueSixteenths/config()/reload()—— 读取和刷新当前估值。
兼容性
- Minecraft: 1.21.1
- Loaders: Fabric · Forge · NeoForge
- Dungeon Train: 与之协同设计,同时安装时会有更深入的联动,但完全可选。
- 监听村民交易事件的第三方模组将会看到这些合成交易 —— 这是有意为之且无害的。
许可证
PolyForm Shield 1.0.0 —— 请参阅 许可证。
Trade Everything
Built for Dungeon Train — works anywhere. Trade Everything was created as a companion to the Dungeon Train mod, where an endless procedurally-generated train needs an economy to match. But it has no dependency on Dungeon Train — drop it into any modpack or vanilla-plus world and every villager instantly becomes a universal merchant.
What it does
Every villager (and wandering trader) gains one extra trade at the top of its trade list: a Trade Anything slot.
Put any item in the world into it, and the villager offers you a fair exchange for goods it actually wants — coal, wheat, paper, iron, emeralds, whatever that villager buys. No more hoarding chests full of junk you can't sell. That stack of cobblestone, that half-broken enchanted pickaxe, that pile of rotten flesh — it all has a price now.
Prices aren't arbitrary. Every item is valued by what it's genuinely worth:
- Rarity sets a baseline (common items ≈ 16 to the emerald).
- Crafting & smithing recipes are solved recursively — a diamond pickaxe is worth its diamonds and sticks; a netherite sword is worth the diamond sword plus the ingot and template that upgraded it.
- Durability matters — a nearly-broken tool is worth a fraction of a pristine one, scaling smoothly back up to full value.
- Enchantments add real value — each level roughly doubles the premium, so a Sharpness V book is worth far more than a Sharpness I.
High-value items pay out in emeralds, and truly premium items (enchanted netherite, god-roll gear) pay in emerald blocks.
How to use it
- Right-click any villager to open its trades.
- The top row is the Trade Anything slot — it shows a chest labelled "Trade Anything" until you use it.
- Drop any item into the left payment slot. The offer instantly rewrites itself to show exactly how many of that item the villager wants and what it'll pay.
- Take the trade like any normal villager trade.
That's it. No commands, no config required, no crafting anything. It just works the moment the mod is installed.
Spending emerald blocks
If you're carrying emerald blocks and buy something priced in emeralds, the mod automatically breaks exactly enough blocks to cover the cost and hands back the change in emeralds — so your block-stack currency spends seamlessly on any villager trade.
Selling gear back
Villagers will buy back their own stock at a small margin below what they sell it for, so you can return that armor you didn't need. Discounts (from curing a zombie villager or Hero of the Village) never turn this into an exploit — the buy-back always tracks the live price.
Capabilities & design
- Works on villagers and wandering traders (wandering traders configurable).
- Exact-item matching — enchanted, damaged, named, or trimmed items are each valued and matched precisely as their own distinct good.
- No profession XP, no restocking side effects — the Trade Anything slot never levels the villager or interferes with its normal trades. Its offers are never saved to the villager, so nothing bloats your world file.
- Fair, exploit-resistant economy — villagers won't buy emeralds or the commodities they already purchase (those belong to their real trades), and payout rates carry a merchant margin so you can't spin trades in a circle for free profit.
- Fully server-side — install it on a dedicated server and every connected vanilla client gets the feature automatically. In singleplayer the integrated server covers it. (Listed as client: unsupported / server: required — that's why: clients need nothing.)
- Multiloader — Fabric, Forge, and NeoForge, Minecraft 1.21.1.
Configuration
A config file is written on first launch at config/tradeeverything.json. Everything is tunable:
| Setting | What it controls |
|---|---|
rarity_values_sixteenths |
Base value per rarity tier (in 1/16-emerald units) |
item_overrides_sixteenths |
Per-item value overrides (by item id) |
result_multiplier |
Payout rate — the villager's margin (default 0.75) |
max_cost_count / max_result_count |
Trade size caps |
derive_values_from_recipes |
Toggle recipe/smithing-based valuation |
enchantment_value_per_level_sixteenths |
How much each enchantment level is worth |
allow_undervalued_trades |
Whether near-worthless items can still be sold |
enable_wandering_trader |
Give wandering traders the slot too |
Values are in sixteenths of an emerald: 16 = one emerald, 1 = one-sixteenth (so 16 of that item buys one emerald's worth).
For mod developers
Trade Everything exposes a small Java API (games.brennan.tradeeverything.api.TradeEverythingApi) so other mods can plug into the economy without a Trade Everything update:
registerValueProvider— supply custom values for your own items (Dungeon Train uses this to price its narrative books).setItemOverride— override any item's value at runtime.registerBuyItemSelector— control what a given villager pays out.getValueSixteenths/config()/reload()— read and refresh the current valuation.
Compatibility
- Minecraft: 1.21.1
- Loaders: Fabric · Forge · NeoForge
- Dungeon Train: designed alongside it, deeper synergy when both are installed, but entirely optional.
- Third-party mods that listen for villager trade events will see the synthetic trades — this is intentional and harmless.
License
PolyForm Shield 1.0.0 — see the licence.
Source & issues: github.com/bh679/tradeeverything-mc
下载 Trade Everything
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Trade Everything
下载 Trade Everything
下载 Trade Everything
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Trade Everything
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Trade Everything
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Trade Everything
下载 Trade Everything
下载 Trade Everything
下载 Trade Everything
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
一个基于构建器的 Minecraft 配置库!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧