即时经验收集
大型经验球会一次性获得,而不是逐秒缓慢吸收。这是一个服务器端的数据包,玩家无需安装任何内容。

功能说明
在原版中,一个包含大量经验值(合并后的经验球堆)的经验球会被分成小块吸收,每两刻吸收一小块。一个价值 40 个单位的经验球大约需要 4 秒才能被完全吸收。
使用此数据包后,你拾取范围内的每个经验球的完整经验值都会在一刻内一次性计入,并伴有正常的拾取音效。
修复机制保持完好
原版仅在吸收经验球时修复具有“修补”附魔的物品。如果直接添加经验值,则会跳过修复过程,因此该数据包特意做出了让步:
- 如果你手持或穿着带有损坏且拥有“修补”附魔的物品(主手、副手、头部、胸部、腿部或脚部),数据包将不生效,原版拾取机制照常修复你的物品。
- 一旦没有可修复的物品(物品无损坏,或没有“修补”附魔),经验球又会立即被收集。
安装方法
- 将 ZIP 文件放入服务器的
datapacks 文件夹或单人世界的 datapacks 文件夹中。
- 重启游戏或运行
/reload 命令。
玩家不需要安装任何内容。
设置(仅限操作员)
/scoreboard players set #enabled ixp_cfg 1 即时拾取(默认)
/scoreboard players set #enabled ixp_cfg 0 原版拾取
/scoreboard players set #radius ixp_cfg 15 拾取半径,单位为格子的十分之一(15 = 1.5 格,默认值)
设置会在执行 /reload 后保留。
测试情况
已在 Minecraft 26.3 版本上使用真实游戏客户端进行了测试,共 14 种情况,每种情况分别使用该数据包、不使用该数据包以及使用故意破坏变体(移除了“修补”检查)的数据包运行,以确保测试能够失败:
- 一个 280 经验的经验球在使用数据包时会一次性计入;不使用时,相同的经验球之后仍有一部分留在地面上。
- 六个装备槽位中的损坏“修补”物品:原版拾取生效,物品得到修复。
- 无损坏的“修补”物品和未附魔“修补”的损坏物品:即时拾取。
- 同时存在多个经验球:总经验值全部计入。
- 超出默认半径的经验球不受影响;更大的半径设置可以拾取它们。
- 将
#enabled 设置为 0 恢复为原版拾取方式。
- 观察者模式不受影响。
限制
- 仅列出了 Minecraft 26.3,因为只对该版本进行了测试。
- 当装备有损坏的“修补”物品时,拾取速度故意保持为原版速度。
- 它不会将经验球拉向你身边;它仅改变范围内经验球的计入速度。它可以与吸引经验球的数据包配合使用。
- 已收集的经验球会被移除,因此其他对原版经验球拾取做出反应的数据包或模组将无法检测到它们。
更新日志
1.0.0 (Minecraft 26.3)
- 首次发布:经验球即时计入,安全兼容“修补”,可配置拾取半径,支持开关切换。
Instant XP Collect
Big XP orbs are credited all at once instead of trickling in. Server-side datapack, nothing to install for players.

What it does
In vanilla, an orb that holds a lot of XP (a merged stack of orbs) is taken in small slices, one slice every two ticks. An orb worth 40 slices takes about 4 seconds to be absorbed.
With this pack, the whole XP value of every orb within your pickup radius is credited in a single tick, with the usual pickup sound.
Mending stays intact
Vanilla repairs Mending items only while it absorbs orbs. Adding XP directly would skip that repair, so the pack deliberately steps aside:
- If you hold or wear a damaged item with Mending (main hand, off hand, head, chest, legs or feet), the pack does nothing and vanilla pickup repairs your item as usual.
- Once nothing is left to repair (item undamaged, or no Mending), orbs are collected instantly again.
Installation
- Put the ZIP into the
datapacks folder of your server or single-player world.
- Restart or run
/reload.
Players do not need to install anything.
Settings (operators)
/scoreboard players set #enabled ixp_cfg 1 instant pickup (default)
/scoreboard players set #enabled ixp_cfg 0 vanilla pickup
/scoreboard players set #radius ixp_cfg 15 pickup radius in tenths of a block (15 = 1.5 blocks, default)
Settings survive /reload.
Tested
Tested on Minecraft 26.3 with a real game client, 14 cases, each run with the pack, without the pack, and with a deliberately broken variant of the pack (Mending check removed) to make sure the test can fail:
- A 280 XP orb is credited at once with the pack; without it, the same orb is still partly on the ground afterwards.
- Damaged Mending items in each of the six equipment slots: vanilla pickup applies and the item is repaired.
- Undamaged Mending item and damaged item without Mending: instant pickup.
- Several orbs at once: the full total is credited.
- Orbs outside the default radius are left alone; a larger radius setting picks them up.
- Setting
#enabled to 0 restores vanilla pickup.
- Spectators are not affected.
Limits
- Only Minecraft 26.3 is listed, because only that version was tested.
- While a damaged Mending item is equipped, pickup is vanilla speed on purpose.
- It does not pull orbs toward you; it only changes how fast orbs within reach are credited. It can be combined with packs that attract orbs.
- Collected orbs are removed, so other packs or mods that react to vanilla orb pickup will not see them.
Changelog
1.0.0 (Minecraft 26.3)
- First release: instant orb credit, Mending-safe, configurable radius, on/off switch.
评论 0
登录后参与评分
还没有评论,来抢沙发吧