
你的玩家可以使用命令或自动将经验值封装到瓶子中。你可以自定义瓶子的外观、阈值以及转换规则。
Paper 1.21.4+ Folia Java 21
工作原理
- 玩家执行
/rexp pack bottle 30。
- 插件扣除 30 级经验并消耗一个空玻璃瓶。
- 玩家获得一个内含 30 级经验的瓶子。
- 右键点击该瓶子即可收回经验。
功能特性
- 通过
/rexp pack bottle 30 将经验封装进自定义瓶子。
- 将经验封装进原版附魔之瓶,每个瓶子容纳 7 XP。
- 自动转换:超过 30 级的经验会自动转换为每瓶 15 级的经验瓶。
- 在获得经验后立即检查,或按设定的时间间隔定期检查。
- 为每个等级设置独立的瓶子外观:材质、名称、描述、附魔光效、CustomModelData。
- 自由模式:玩家可以封装最高达 500 级的任意经验量。
- 支持右键使用或投掷来兑换经验。
- ADD(累加)或 FOLD(折叠)模式:15 级加上 30 级经验瓶可获得 45 级,或约 33 级。
- 以空玻璃瓶作为消耗品,使用后返还。
- PlaceholderAPI 支持:
%rexp_auto% 和 %rexp_mode%。
- 所有消息均可发送至聊天栏或动作栏。
- 无内置菜单:请将插件命令绑定到 DeluxeMenus 按钮上。
- 支持 MiniMessage 格式与 Folia 兼容。
依赖要求
| 服务器端 |
Java 版本 |
可选插件 |
| Paper 1.21.4+ 或 Folia |
21 |
PlaceholderAPI(仅用于占位符) |
命令列表
| 命令 |
功能说明 |
权限节点 |
/rexp help |
显示命令列表 |
rexp.use |
/rexp pack bottle <levels> [amount] |
将经验封装进自定义瓶子 |
rexp.pack |
/rexp pack experience <XP or all> |
将经验封装进原版瓶子 |
rexp.pack |
/rexp auto <on or off> <bottle or experience> [levels] |
开启或关闭自动转换功能 |
rexp.auto |
/rexp give <player> <levels> [amount] |
向玩家发放经验瓶 |
rexp.give |
/rexp reload |
重新加载配置文件 |
rexp.reload |
别名:/rx。每位玩家默认拥有 rexp.use、rexp.pack 和 rexp.auto 权限。管理员(Operators)额外拥有 rexp.give 和 rexp.reload 权限。
注意事项
- 本插件会向 bStats 发送匿名使用统计数据。如需关闭,请在
config.yml 中设置 metrics: false。
- 本插件会检查新版本更新。如需关闭,请在
config.yml 中设置 update-check: false。
config.yml
settings:
debug: false # 详细的控制台日志,用于故障排查
metrics: true # 匿名 bStats 统计数据
update-check: true # 检查插件新版本
commands:
main: rexp # 主命令名称
aliases: # 备用命令名称
- rx
config-version: 2 # 内部字段,请勿修改
bottle.yml
# true: 玩家可以创建任意等级的瓶子,上限由 bottle.max-levels 决定
# false: /rexp pack bottle 仅接受 bottles 配置节中定义的等级
bottle-create: false
# 共享的瓶子外观。适用于 bottles 节中未定义的等级。
bottle:
material: EXPERIENCE_BOTTLE # 瓶子物品类型
name: "<white>经验瓶</white> <gray>({points} xp)</gray>" # {points}: 经验值 (XP)
lore: # {levels}: 瓶内的经验等级
- ''
- " <white>包含: <#99ff66>{levels} LVL</white>"
- " <gray>右键吸收</gray>"
- ''
glint: true # 附魔光效
custom-model-data: 0 # 资源包的 CustomModelData,0 表示关闭
max-levels: 500 # 单个瓶子在 pack 和 give 命令中的等级上限
require-glass-bottle: true # true: 制作瓶子需要消耗一个空玻璃瓶
# true: 使用后返还空玻璃瓶。
# 在此处及 auto.yml 中配合 require-glass-bottle: true 生效。
return-glass-bottle: false
# DRINK: 右键饮用获取经验。THROW: 像原版瓶子一样投掷。
# 只有 EXPERIENCE_BOTTLE 可以被投掷,其他材质始终只能饮用。
redeem: DRINK
# ADD: 经验等级直接相加,15 级加 30 级瓶子等于 45 级。
# FOLD: 经验按 XP 值计算(类似原版),15 级加 30 级瓶子约等于 33 级。
exp-give: FOLD
# 具有自定义外观的瓶子。键值:经验等级,范围从 1 到 bottle.max-levels。
# material, name, lore, glint 和 custom-model-data 均为可选,缺失的字段将继承自 bottle 节。
# 空列表写法:bottles: {}
bottles:
15:
material: EXPERIENCE_BOTTLE
name: "<white>含 15 级经验的瓶子</white>"
lore:
- ''
- " <white>包含: <#99ff66>15</#99ff66> 级经验"
- " <gray>右键使用</gray>"
- ''
30:
material: EXPERIENCE_BOTTLE
name: "<white>含 30 级经验的瓶子</white>"
lore:
- ''
- " <white>包含: <#99ff66>30</#99ff66> 级经验"
- " <gray>右键使用</gray>"
- ''
experience:
xp-per-bottle: 7 # 一个原版附魔之瓶对应的 XP 价格
config-version: 4 # 内部字段,请勿修改
auto.yml
auto-convert:
enabled-by-default: false # true: 新玩家首次加入时默认开启自动转换
default-mode: BOTTLE # 默认模式:BOTTLE 使用自定义瓶子,EXPERIENCE 使用原版瓶子
trigger: EVENT # EVENT: 获得经验后触发检查。PERIODIC: 按时间间隔定期检查
interval-seconds: 3 # 时间间隔秒数,仅在 trigger: PERIODIC 时有效
bottle: # 自定义瓶子模式
keep-levels: 30 # 玩家保留的经验等级,其余部分封装成瓶子
bottle-levels: 15 # 单个瓶子封装的经验等级
max-bottles-per-cycle: 64 # 每次检查生成的最大瓶子数量
require-glass-bottle: true # true: 每个瓶子都需要消耗一个空玻璃瓶
hunger-per-bottle: 0 # 每个瓶子的饥饿值消耗,0 表示关闭。支持小数:0.1
experience: # 原版瓶子模式
keep-levels: 30 # 玩家保留的经验等级
max-bottles-per-cycle: 64 # 每次检查生成的最大瓶子数量
hunger-per-bottle: 0 # 每个瓶子的饥饿值消耗,0 表示关闭
config-version: 1 # 内部字段,请勿修改

Your players pack experience into bottles with a command or automatically. You set the bottle look, the threshold and the conversion rules.
Paper 1.21.4+ Folia Java 21
How it works
- A player runs
/rexp pack bottle 30.
- The plugin takes 30 levels and one empty glass bottle.
- The player gets a bottle with 30 levels inside.
- A right-click on the bottle gives the experience back.
Features
- Experience packing into custom bottles with
/rexp pack bottle 30.
- Experience packing into vanilla bottles o' enchanting, 7 XP each.
- Auto conversion: experience above 30 levels goes into bottles of 15 levels.
- A check right after an XP gain or on a timer.
- Your own bottle look per level: material, name, lore, glint, CustomModelData.
- Free mode: a player packs any level up to 500.
- Redeem with a right-click or a throw.
- ADD or FOLD mode: 15 plus 30 levels gives 45 or about 33.
- An empty glass bottle as a cost, returned after use.
- PlaceholderAPI:
%rexp_auto% and %rexp_mode%.
- Any message goes to the chat or the action bar.
- No built-in menu: bind the plugin commands to DeluxeMenus buttons.
- MiniMessage, Folia support.
Requirements
| Server |
Java |
Optional plugins |
| Paper 1.21.4+ or Folia |
21 |
PlaceholderAPI, only for the placeholders |
Commands
| Command |
What it does |
Permission |
/rexp help |
Shows the command list |
rexp.use |
/rexp pack bottle <levels> [amount] |
Packs experience into custom bottles |
rexp.pack |
/rexp pack experience <XP or all> |
Packs experience into vanilla bottles |
rexp.pack |
/rexp auto <on or off> <bottle or experience> [levels] |
Turns auto conversion on and off |
rexp.auto |
/rexp give <player> <levels> [amount] |
Gives bottles to a player |
rexp.give |
/rexp reload |
Reloads the configs |
rexp.reload |
Alias: /rx. Every player has rexp.use, rexp.pack and rexp.auto. Operators have rexp.give and rexp.reload.
Good to know
- The plugin sends anonymous usage statistics to bStats. Set
metrics: false in config.yml to turn it off.
- The plugin checks for a new version. Set
update-check: false in config.yml to turn it off.
config.yml
settings:
debug: false # detailed console messages for troubleshooting
metrics: true # anonymous bStats statistics
update-check: true # checks for a new plugin version
commands:
main: rexp # main command name
aliases: # extra command names
- rx
config-version: 2 # internal field, leave it as is
bottle.yml
# true: a player creates a bottle with any level up to bottle.max-levels
# false: /rexp pack bottle accepts only levels from the bottles section
bottle-create: false
# Shared bottle look. Applies to levels missing from the bottles section.
bottle:
material: EXPERIENCE_BOTTLE # bottle item
name: "<white>Experience bottle</white> <gray>({points} xp)</gray>" # {points}: experience in XP
lore: # {levels}: levels inside the bottle
- ''
- " <white>Contains: <#99ff66>{levels} LVL</white>"
- " <gray>Right-click to absorb</gray>"
- ''
glint: true # enchantment glint
custom-model-data: 0 # CustomModelData for a resource pack, 0 turns it off
max-levels: 500 # level cap for one bottle in pack and give
require-glass-bottle: true # true: creating a bottle costs an empty glass bottle
# true: the player gets the empty bottle back after use.
# Works with require-glass-bottle: true here and in auto.yml.
return-glass-bottle: false
# DRINK: experience on right-click. THROW: thrown like a vanilla bottle.
# Only EXPERIENCE_BOTTLE is thrown, any other material is always drunk.
redeem: DRINK
# ADD: levels are added, 15 lvl plus a 30 lvl bottle gives 45 lvl.
# FOLD: experience counts in XP like vanilla, 15 lvl plus a 30 lvl bottle gives about 33 lvl.
exp-give: FOLD
# Bottles with their own look. Key: experience level from 1 to bottle.max-levels.
# material, name, lore, glint and custom-model-data are optional, missing fields come from the bottle section.
# Empty list: bottles: {}
bottles:
15:
material: EXPERIENCE_BOTTLE
name: "<white>Bottle with 15 levels</white>"
lore:
- ''
- " <white>Contains: <#99ff66>15</#99ff66> levels of experience"
- " <gray>Right-click to use</gray>"
- ''
30:
material: EXPERIENCE_BOTTLE
name: "<white>Bottle with 30 levels</white>"
lore:
- ''
- " <white>Contains: <#99ff66>30</#99ff66> levels of experience"
- " <gray>Right-click to use</gray>"
- ''
experience:
xp-per-bottle: 7 # XP price of one vanilla bottle o' enchanting
config-version: 4 # internal field, leave it as is
auto.yml
auto-convert:
enabled-by-default: false # true: auto conversion is on for new players from the first join
default-mode: BOTTLE # default mode: BOTTLE custom bottles, EXPERIENCE vanilla bottles
trigger: EVENT # EVENT: check after an XP gain. PERIODIC: check on a timer
interval-seconds: 3 # timer pause in seconds, read with trigger: PERIODIC
bottle: # custom bottle mode
keep-levels: 30 # levels the player keeps, the rest goes into bottles
bottle-levels: 15 # levels in one bottle
max-bottles-per-cycle: 64 # bottle limit per check
require-glass-bottle: true # true: every bottle costs an empty glass bottle
hunger-per-bottle: 0 # hunger cost per bottle, 0 turns it off. Fractions work: 0.1
experience: # vanilla bottle mode
keep-levels: 30 # levels the player keeps
max-bottles-per-cycle: 64 # bottle limit per check
hunger-per-bottle: 0 # hunger cost per bottle, 0 turns it off
config-version: 1 # internal field, leave it as is
评论 0
登录后参与评分
还没有评论,来抢沙发吧