Rerollager
一个轻量级的 Paper 插件,用于重新刷新生意。潜行并右键点击村民即可立即刷新其交易,无需破坏和替换工作台。继续刷新直到获得你想要的附魔书、工具或价格。
专为最新的 Minecraft(Paper 26.1.2 & 26.2)制作。无依赖项。
功能说明
在原版游戏中,你只能在与村民进行交易之前刷新其交易,通常的 trick 是不断破坏并替换其 lectern 或工作台。Rerollager 跳过了这一步骤。潜行并右键点击已雇佣的村民,其交易将在当前等级下重新生成,同时保留相同的职业、等级、经验值和名称。它甚至适用于你已经与之交易过并升级的村民,因此你可以刷新满级图书管理员而无需重新开始。
特性
- 通过潜行和右键点击就地刷新交易。无需破坏工作台。
- 保留村民的职业、等级、经验值和自定义名称。
- 不仅适用于新鲜村民,也适用于已经交易过的村民。
- 可选冷却时间,按玩家和村民分别追踪。
- 每次刷新可选费用:物品、经验值或两者皆有,支持根据村民等级或职业进行缩放。
- 交易锁定功能,防止意外刷新。使用可配置的物品进行锁定和解锁。
- 基于权限控制。默认情况下不授予任何权限给玩家,由你决定谁可以使用。
- 轻量级,无外部依赖。
使用方法
- 通过在旁边放置工作站点方块来找到或创建一个已雇佣的村民(放置 lectern 会生成图书管理员)。
- 空手潜行并右键点击它,其交易将被刷新。
- 要锁定村民,请手持锁定物品(默认为绊线钩)潜行并右键点击它。再次执行以解锁。
默认情况下只有操作员可以刷新和锁定。将 rerollager.use(以及 rerollager.lock)权限授予你想要授权的玩家或组。
命令
/rerollager info 显示当前的冷却时间、费用和锁定设置。
/rerollager reload 重载配置文件。别名:/rrl。
权限
| 权限 |
默认值 |
描述 |
rerollager.use |
op |
刷新村民交易 |
rerollager.lock |
op |
锁定和解锁村民 |
rerollager.bypass.cooldown |
none |
刷新时跳过冷却等待 |
rerollager.bypass.cost |
none |
刷新时跳过支付费用 |
rerollager.bypass.lock |
none |
刷新交易被锁定的村民 |
rerollager.admin |
op |
使用 /rerollager reload |
普通玩家不会自动获得这些权限。请使用如 LuckPerms 之类的权限插件分配这些权限。
要求
- Paper 或其分支(如 Purpur),适用于 Minecraft 26.1.2
- Java 25
链接
GitHub 上的源代码和问题反馈 | MIT 许可证
Rerollager
A lightweight Paper plugin for rerolling villager trades. Sneak and right-click a villager and its trades refresh on the spot, with no breaking and replacing the workstation. Keep rerolling until you get the enchanted book, tool, or price you want.
Made for the latest Minecraft (Paper 26.1.2 & 26.2). No dependencies.
What it does
In vanilla you can only reroll a villager's trades before you have traded with it, and the usual trick is to keep breaking and replacing its lectern or workstation. Rerollager skips that. Sneak and right-click an employed villager and its trades regenerate at its current level, keeping the same profession, level, XP, and name. It even works on villagers you have already traded with and leveled up, so you can reroll a maxed librarian without starting over.
Features
- Reroll trades in place with a sneak and right-click. No workstation breaking.
- Keeps the villager's profession, level, XP, and custom name.
- Works on villagers you have already traded with, not just fresh ones.
- Optional cooldown, tracked per player and per villager.
- Optional cost per reroll: items, XP, or both, with optional scaling by villager level or profession.
- Trade locking so a villager cannot be rerolled by accident. Lock and unlock with a configurable item.
- Permission based. Nothing is granted to players by default, so you decide who can use it.
- Lightweight with no external dependencies.
How to use
- Find or make an employed villager by placing a job site block next to it (a lectern makes a Librarian).
- Sneak and right-click it with an empty hand. Its trades reroll.
- To lock a villager, sneak and right-click it while holding the lock item (a Tripwire Hook by default). Do it again to unlock.
By default only operators can reroll and lock. Grant rerollager.use (and rerollager.lock) to the players or groups you want to give access to.
Commands
/rerollager info shows the current cooldown, cost, and lock settings.
/rerollager reload reloads the config. Alias: /rrl.
Permissions
| Permission |
Default |
Description |
rerollager.use |
op |
Reroll villager trades |
rerollager.lock |
op |
Lock and unlock a villager |
rerollager.bypass.cooldown |
none |
Reroll without waiting for the cooldown |
rerollager.bypass.cost |
none |
Reroll without paying the cost |
rerollager.bypass.lock |
none |
Reroll a villager whose trades are locked |
rerollager.admin |
op |
Use /rerollager reload |
Nothing is granted to regular players automatically. Assign these with a permissions plugin such as LuckPerms.
Requirements
- Paper or a Paper fork such as Purpur, for Minecraft 26.1.2
- Java 25
Links
Source and issues on GitHub | MIT licensed
评论 0
登录后参与评分
还没有评论,来抢沙发吧