? expTrade
玩家间交易经验值
你是否曾在刷怪塔里刷出40个多余的经验等级,而朋友却为了附魔第一把镐子而苦苦积攒? expTrade 让玩家像交易其他资源一样自由传递经验值——你可以给出、索取,并通过一个简洁的箱子 GUI 队列来确认交换。无需将附魔之瓶扔在地上,也无需考验信任:每次转移都是显式的,发生前会预览,且设有时间限制,过期的提议会自动清理。
? 1.3.2 新功能: 一个 Jar 文件现在适用于所有 Minecraft 26.x 版本 —— 26.1、26.1.1、26.1.2、26.2 以及 26.3。
该模组完全基于服务器端运行——原版客户端可以加入安装了模组的服务器并正常运行。同时也支持单人游戏。没有新增方块、没有新增物品、也没有依赖库模组:只需使用 /exptrade 命令和一个由原版物品构建的虚拟箱子菜单即可。
为什么选择 expTrade?
|
expTrade |
| ? 方向 |
给予经验值 或 请求获取 —— 另一方始终拥有最终确认权 |
| ? 单位 |
整数 等级、精确的 原始经验值 (XP) 或 all(全部)—— 模组自动处理经验曲线计算 |
| ? 队列 |
实时箱子 GUI 队列,每个玩家拥有独立的 TTL(生存时间)和倒计时时钟 |
| ?️ 安全性 |
个人等级阈值保护 + 接受瞬间的重新验证机制 |
| ? 客户端 |
仅服务器端运行 —— 原版客户端连接后即可正常游玩 |
✨ 主要功能
- ? 双向给予或请求。 使用
give 命令将自己的 XP 推送给他人,或使用 request 命令向他人索取。另一方始终拥有最终决定权。
- ? 等级或原始经验值。 交易整数 等级 或确切的 原始经验值 数量 —— 或者使用
all 一次性清空你的经验条。模组会自动为你处理原版经验曲线的计算。
- ? 实时箱子 GUI 队列。
/exptrade pending 打开一个虚拟箱子,显示所有待处理的提议作为独立行:包含剩余时间的 时钟、发送者的 玩家头颅、提议/请求 标记、详情 页面,以及一键 Accept(接受) / Decline(拒绝) 按钮。
- ⏳ 每玩家独立队列与 TTL。 每位玩家都有自己独立的接收队列(默认上限 10)。提议在超时后(默认 60秒)自动过期,并通知双方 —— 没有任何提议会永远滞留。
- ?️ 阈值保护。 通过
/exptrade threshold 设置个人最低等级底线,模组会拒绝任何会导致你低于该等级的交易 —— 这是防止误触 give … all 的完美保险。
- ? 提交前的余额预览。 每个提议都会显示双方等级和经验值的 Before → After(变更前 → 变更后) 读数,确保没有人会在不知情的情况下同意交易。
- ?️ 可点击的聊天控制。 提议附带
[View Queue]、[Cancel] 按钮,以及管理员专用的 [Confirm] / [Cancel] 按钮,直接绑定到对应命令。
- ✅ 执行时的双重检查。 金额在提议时经过验证,并在 接受瞬间再次验证 —— 如果在此期间赠送者消耗了经验值,交易将干净利落地失败,而不是出现负数。
- ?️ 管理员转账。 操作员可以使用两步确认机制在任何两名在线玩家之间移动经验值,绕过阈值限制 —— 非常适合用于活动、退款和奖品发放。
- ? 无物品风险。 GUI 中的槽位仅用于显示;你无法从中取出物品或放入自己的物品。唯一可交互的槽位是 Accept 和 Decline。
⌨️ 命令
所有功能均位于 /exptrade 之下。<player> 目标为在线玩家;数量为正整数,或使用字面量 all 以移动你的整个经验条。
| 命令 |
功能说明 |
/exptrade give <player> levels <amount> |
向某玩家提供指定数量的 等级 |
/exptrade give <player> levels all |
提供你所有的 XP(以等级形式表示) |
/exptrade give <player> exp <amount> |
向某玩家提供指定数量的 原始经验值 |
/exptrade give <player> exp all |
提供你所有的原始经验值 |
/exptrade request <player> levels <amount> |
向某玩家请求指定数量的 等级(在你当前等级下转换为原始经验值) |
/exptrade request <player> levels all |
向某玩家请求其所有的 XP |
/exptrade request <player> exp <amount> |
向某玩家请求指定数量的 原始经验值 |
/exptrade request <player> exp all |
向某玩家请求其所有的 XP |
/exptrade accept [<player>] |
接受队列中的第一个提议 —— 或来自特定 <player> 的提议 |
/exptrade decline [<player>] |
拒绝第一个提议 —— 或来自特定 <player> 的提议 |
/exptrade cancel |
取消你自己发出的外出提议 |
/exptrade pending |
打开箱子 GUI 交易队列 |
/exptrade threshold <levels> |
设置你的个人最低等级底线(0 = 无底线) |
管理员命令
需要管理员或游戏主持人级别的权限。
| 命令 |
功能说明 |
/exptrade admin transfer <from> <to> levels|exp <amount> |
安排两名玩家之间的经验值转移(绕过限制阈值) |
/exptrade admin transfer <from> <to> levels|exp all |
安排将所有源玩家的 XP 进行转移 |
/exptrade admin confirm |
确认你安排的转移操作 |
/exptrade admin cancel |
取消你安排的转移操作 |
/exptrade config timeout <seconds> |
设置邀请超时时间(10–300秒)并保存 |
/exptrade config maxqueue <size> |
设置每个玩家的队列上限(1–50)并保存 |
/exptrade config reload |
从磁盘重新加载配置文件 |
⚙️ 配置
设置保存在 config/exptrade.json 中(首次启动时创建)。这两个值也可以通过游戏内的 /exptrade config … 命令实时编辑,该命令会自动写入文件;/exptrade config reload 则从磁盘重新读取文件。
| 键名 |
默认值 |
范围 |
含义 |
timeoutSeconds |
60 |
10–300 |
待处理的邀请在队列中自动过期前停留的时间 |
maxQueueSize |
10 |
1–50 |
单个玩家同时等待的待处理邀请的最大数量 |
使用 /exptrade threshold 设置的玩家个人阈值单独存储在 config/exptrade/playerdata.json 中,并在重启后保留。
✅ 兼容性
|
|
| 加载器 |
Fabric 和 NeoForge —— 一个 jar 包 |
| Minecraft |
26.1 – 26.3 —— 一个 jar 包,v1.3.2 · 1.21.11 和 1.21.9 – 1.21.10 —— v1.3.0 |
| Fabric API |
Fabric 端必需 · NeoForge 端不需要 |
| 运行环境 |
服务端 — 支持原版客户端,也支持单人游戏 |
| 额外依赖库 |
无 —— 独立运行 |
喜欢它吗?加入 Discord · 给 仓库 点⭐ · 探索 Lunixia 的 Minecraft QOL 模组 系列的其他作品
⛏️ 小巧专注的模组,剔除繁琐内容。
? expTrade
Trade XP between players
Ever finished a mob grinder with 40 spare levels while a friend is scraping to enchant their first pickaxe? expTrade lets players hand XP back and forth like any other resource — give it, ask for it, and confirm the exchange through a clean chest-GUI queue. No dropping bottles o' enchanting on the floor, no trust games: every transfer is explicit, previewed before it happens, and time-boxed so stale offers clean themselves up.
? New in 1.3.2: one jar now runs on every Minecraft 26.x release — 26.1, 26.1.1, 26.1.2, 26.2 and 26.3.
It's fully server-side — a vanilla client can join a modded server and it just works. Runs in single-player too. No new blocks, no new items, no library mods: just /exptrade and a virtual chest menu built from vanilla items.
Why expTrade?
|
expTrade |
| ? Direction |
Give XP away or request it — the other player always confirms |
| ? Units |
Whole levels, exact raw XP, or all — the mod does the curve math |
| ? Queue |
A live chest-GUI queue with per-player TTL and countdown clocks |
| ?️ Safety |
Personal level thresholds + re-validation at the moment of accept |
| ? Client |
Server-side only — vanilla clients connect and play as normal |
✨ Key features
- ? Give or request, either direction. Push your own XP to someone with
give, or ask them for some with request. The other player always gets the final say.
- ? Levels or raw XP. Trade a round number of levels or an exact raw XP amount — or
all to empty your bar in one go. The mod does the vanilla XP-curve math for you.
- ? A live chest-GUI queue.
/exptrade pending opens a virtual chest showing every incoming offer as its own row: a clock ticking down the time left, the sender's player head, an offer/request marker, a details page, and one-click Accept / Decline buttons.
- ⏳ Per-player queue with TTL. Each player has their own incoming queue (default cap 10). Offers expire automatically after a timeout (default 60s), notifying both sides — nothing lingers forever.
- ?️ Threshold protection. Set a personal level floor with
/exptrade threshold and the mod refuses any trade that would drop you below it — great insurance against fat-fingering give … all.
- ? Balance preview before you commit. Every offer shows a before → after readout of both players' levels and XP, so nobody agrees blind.
- ?️ Clickable chat controls. Offers come with
[View Queue], [Cancel], and (for admins) [Confirm] / [Cancel] buttons wired straight to the commands.
- ✅ Double-checked at execution. Amounts are validated when the offer is made and re-validated the instant it's accepted — if the giver spent their XP in the meantime, the trade fails cleanly instead of going negative.
- ?️ Admin transfers. Operators can move XP between any two online players with a two-step confirm, bypassing thresholds — handy for events, refunds, and prizes.
- ? No item risk. The GUI slots are display-only; you can't pull items out or drop your own in. The only interactive slots are Accept and Decline.
⌨️ Commands
Everything lives under /exptrade. <player> targets are online players; amounts are positive integers, or the literal all to move your entire bar.
| Command |
What it does |
/exptrade give <player> levels <amount> |
Offer that many levels to a player |
/exptrade give <player> levels all |
Offer all your XP (expressed as levels) |
/exptrade give <player> exp <amount> |
Offer that many points of raw XP |
/exptrade give <player> exp all |
Offer all your raw XP |
/exptrade request <player> levels <amount> |
Ask a player for that many levels (converted to raw XP at your level) |
/exptrade request <player> levels all |
Ask a player for all their XP |
/exptrade request <player> exp <amount> |
Ask a player for that much raw XP |
/exptrade request <player> exp all |
Ask a player for all their XP |
/exptrade accept [<player>] |
Accept the first offer in your queue — or the one from a specific <player> |
/exptrade decline [<player>] |
Decline the first offer — or the one from a specific <player> |
/exptrade cancel |
Cancel your own outgoing offer |
/exptrade pending |
Open the chest-GUI trade queue |
/exptrade threshold <levels> |
Set your personal minimum level floor (0 = no floor) |
Admin commands
Require operator / gamemaster-level permission.
| Command |
What it does |
/exptrade admin transfer <from> <to> levels|exp <amount> |
Stage an XP transfer between two players (bypasses thresholds) |
/exptrade admin transfer <from> <to> levels|exp all |
Stage a transfer of all the source player's XP |
/exptrade admin confirm |
Confirm your staged transfer |
/exptrade admin cancel |
Discard your staged transfer |
/exptrade config timeout <seconds> |
Set the offer timeout (10–300s) and save |
/exptrade config maxqueue <size> |
Set the per-player queue cap (1–50) and save |
/exptrade config reload |
Reload the config file from disk |
⚙️ Configuration
Settings live in config/exptrade.json (created on first launch). Both values are also editable live in-game via /exptrade config …, which writes the file for you; /exptrade config reload re-reads it from disk.
| Key |
Default |
Range |
Meaning |
timeoutSeconds |
60 |
10–300 |
How long a pending offer stays in the queue before it auto-expires |
maxQueueSize |
10 |
1–50 |
Maximum number of pending offers a single player can have waiting at once |
Per-player thresholds set with /exptrade threshold are stored separately in config/exptrade/playerdata.json and persist across restarts.
✅ Compatibility
|
|
| Loaders |
Fabric and NeoForge — one jar |
| Minecraft |
26.1 – 26.3 — one jar, v1.3.2 · 1.21.11 and 1.21.9 – 1.21.10 — v1.3.0 |
| Fabric API |
Required on Fabric · not needed on NeoForge |
| Side |
Server-side — vanilla clients supported, single-player too |
| Extra libraries |
None — standalone |
Enjoying it? Hop in the Discord · ⭐ the repo · explore the rest of Lunixia's Minecraft QOL Mods
⛏️ Small, focused mods that cut out the boring stuff.
评论 0
登录后参与评分
还没有评论,来抢沙发吧