1.0.2-RELEASE
Compatibility
Changes
LegitTrade 1.0.2 - Server Trade System
The Story
It started with Simple Villager - capturing villagers for easy trading.
Then I switched to Custom Villager Trade to customize trade offers.
Then I wondered: Why deal with villagers at all?
I didn't want to wrestle with villagers - transporting them to the right spot, binding workstations, protecting them from zombies, rerolling for desired trades... too much hassle.
What I wanted was simple:
A creative mode that looks like survival - at least for item acquisition.
- Not interested in making the game harder, just more convenient
- Don't want to deal with villagers, just click and get items
- Better than creative in some ways - easily customize NBT, get Sharpness X netherite swords, Knockback X bows, beyond vanilla power
- Even reward myself with 1000 XP per trade
Thus LegitTrade - legitimate trading, completely legitimate. Aren't I obtaining these items in survival mode?
Right-click block, click, done. Villagers eliminated.
Core Features
In-Game Ready to Use
- Low cost: 9 logs of any type to craft a trade block
- Zero learning curve: Right-click
trade_blockto open, select trade on left, click output on right, done - Auto-fill: System automatically pulls required items from inventory
- Batch trading: Shift+click output slot to execute continuously until inventory full or materials exhausted
- Real-time preview: Output preview updates automatically when input changes
- Strong mod compatibility: Any item that exists in the game can be found via Web UI and added to trades
Web Management Panel
Manage trades via browser, no server restart needed
Visit http://server-ip:39482:
- Visual add/edit/delete trades
- Item ID search with suggestions
- NBT editor (enchantments, durability, etc.)
- Auto-sync to all online players after save
Server-Side Reliability
- Hot reload:
/tradereloadreloads config without server restart - Auto-sync: Players receive latest trade config on join
- Secure: All trade logic executed server-side, cheat-proof
Typical Use Cases
| Scenario | Traditional | LegitTrade |
|---|---|---|
| Redeem event rewards | Remember /exchange xxx, players mistype |
Right-click block, click once |
| Server currency exchange | Find NPC, dialogue, select option | Right-click block, click once |
| Material recycling | Multiple command combinations | Right-click block, click once |
| Modify trade config | Edit file, restart server | Web UI edit, auto-applied |
Config Example
[
{
"group": "Starter Kit",
"trades": [
{
"input": "minecraft:dirt",
"output": "minecraft:diamond",
"inputCount": 64,
"outputCount": 1,
"xpReward": 100
}
]
}
]
Download & Install
- Supported version: Minecraft 1.20.1 + Fabric
- Install: Place jar file in
modsfolder - Dependency: Fabric API
Technical Info
| Item | Version |
|---|---|
| Minecraft | 1.20.1 |
| Fabric Loader | 0.14.23 |
| Fabric API | 0.90.4+1.20.1 |
| Java | 17 |
License
MIT
LegitTrade 1.0.2 - 服务器交易系统
开发故事
最开始,我用 Simple Villager 把村民抓起来,方便交易。
后来换成 Custom Villager Trade,自定义交易内容。
然后我想:为什么还要依赖村民?
我不想和村民斗智斗勇——把他们运到正确位置、绑定工作方块、防止被僵尸感染、重新刷想要的交易……太麻烦了。
我想要的很简单:
一个看起来像生存的创造模式——在物品获取方面。
- 不想增加游戏难度,只想让获取东西更方便
- 不想和村民打交道,只想点一下就拿到东西
- 某些方面比创造模式更强——轻松自定义 NBT,获得锋利 10 的下界合金剑、击退 10 的弓,超越原版强度
- 甚至还可以一次交易给自己奖励1000点经验值
于是有了 LegitTrade——合法交易,完全合法。难道我不是在生存模式下获得这些物品吗?
右键方块,点击,完成。彻底摆脱村民。
核心便利性
🎮 游戏内即开即用
- 低廉的成本:9个任意原木,即可合成一个交易方块
- 零学习成本:右键
trade_block打开界面,左侧选交易,右侧点输出,完成 - 自动填充:选中交易后,系统自动从背包提取所需物品,无需手动拖拽
- 批量交易:Shift+点击输出槽,连续执行直到背包满或材料耗尽
- 实时预览:输入槽变化时,输出预览自动刷新
- 强大MOD兼容:只要是游戏中存在的物品,都可以在WEB界面搜索到,配置到你的交易中去
🌐 Web 管理面板
浏览器直接管理交易配置,无需重启服务器
访问 http://服务器IP:39482:
- 可视化添加/编辑/删除交易
- 物品 ID 搜索提示
- NBT 编辑器(附魔、耐久等)
- 保存后自动同步给所有在线玩家
⚡ 服务端无忧运行
- 热重载:
/tradereload重载配置,无需重启服务器 - 自动同步:玩家加入时自动获取最新交易配置
- 安全可靠:交易逻辑全部在服务端执行,防作弊
典型使用场景
| 场景 | 传统方式 | LegitTrade |
|---|---|---|
| 兑换活动奖励 | 记指令 /exchange xxx,玩家常输错 |
右键方块,点一下 |
| 服务器货币兑换 | 找 NPC,对话,选选项 | 右键方块,点一下 |
| 材料回收 | 多个指令组合 | 右键方块,点一下 |
| 修改交易配置 | 改配置文件,重启服务器 | Web 界面改,自动生效 |
配置示例
[
{
"group": "新手礼包",
"trades": [
{
"input": "minecraft:dirt",
"output": "minecraft:diamond",
"inputCount": 64,
"outputCount": 1,
"xpReward": 100
}
]
}
]
下载与安装
- 支持版本:Minecraft 1.20.1 + Fabric
- 安装:将 jar 文件放入
mods文件夹 - 依赖:Fabric API
技术信息
| 项目 | 版本 |
|---|---|
| Minecraft | 1.20.1 |
| Fabric Loader | 0.14.23 |
| Fabric API | 0.90.4+1.20.1 |
| Java | 17 |
许可证
MIT
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:EMnziBRf:5T0TaFJD"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:EMnziBRf:5T0TaFJD"
}

