XpMerge
Less orbs. More frames. Same XP.
XpMerge is a lean, Folia-native XP orb merging plugin built for servers that care about performance.
Every configured interval, it sweeps all loaded chunks, finds clusters of experience orbs in close
proximity, and collapses them into a single orb โ no XP lost, no exploits, no drama.
Interval-Based Sweeping
Merges fire on a configurable tick schedule, not every frame. Tune the interval to balance aggression against CPU overhead โ default is every 5 ticks (quarter second).
Radius-Based Clustering
Orbs within a set block radius collapse into one, preserving total XP exactly. Massive mob farms, XP grinders, and enchanting setups can spawn hundreds of orbs in seconds โ XpMerge kills that lag at the source by reducing entity count without touching collection logic.
Folia-Native Threading
Uses RegionScheduler per 8ร8 chunk region, meaning all entity reads and writes happen on the correct regional thread with zero unsafe cross-region access. Folia support is first-class โ the sweep architecture was designed around RegionScheduler from the ground up, not bolted on after.
Dupe-Safe Design & Bottled XP Compatibility
XpMerge re-validates every orb immediately before removal. If a player or plugin has already collected an orb between the sweep scan and the merge execution, that orb is skipped entirely โ XP is never double-counted or awarded twice.
| Plugin | Repository |
|---|---|
| Experience Manager (XPM) | github.com/jwkerr/XPManager |
| BottleEXP | github.com/Mooshlol304/BottleEXP-1.21.5 |
| XP Bottling | github.com/HoneyBerries/XPBottling |
Commands & Permissions
All commands require the xpmerge.admin permission, which defaults to OP only.
| Command | Description |
|---|---|
| /xpmerge status | Shows current interval, radius, debug state, and total orbs merged |
| /xpmerge reload | Hot-reloads config and restarts the merge task |
Configuration
Config is located at plugins/XpMerge/config.yml.
# Lower = more aggressive merging, slightly more CPU. Minimum: 1.
merge-interval: 5
# Block radius within which orbs are merged together.
merge-radius: 20.00
# Print a line to console every time orbs are merged.
debug: false
Installation
- Download the latest .jar from the releases section below
- Drop it into your /plugins folder
- Restart your server (not /reload)
- Edit plugins/XpMerge/config.yml to your liking
- Use /xpmerge reload to apply config changes live
Found a bug or have a question? DM mooshbrixa on Discord.
Moosh