π XP Mode β Documentation
π― Purpose
The XP system allows players to gain experience points (XP) from various actions like mining, crafting, trading, killing mobs, etc. Based on their total XP, players unlock new items, actions, and abilities.
βοΈ Configuration (xpmode.yml)
π§ Options
options:
allowUnlimitedXP: true # Should players continue to gain XP after reaching max level?
gainXPInCreative: true # Should players gain XP while in creative mode?
π§ͺ Levels & Unlocks
Players unlock new items, actions, and effects by reaching specific XP thresholds:
Recipes:
level1:
needed_xp: 0
items: [...]
runCommandsOnReach: [...]
entities_actions: [...]
needed_xpβ the XP required to reach the level.itemsβ list of items unlocked at this level.runCommandsOnReachβ commands executed when the level is reached (e.g., rewards).entities_actionsβ special actions unlocked, such asshear,villagerTrade,mobFeed.potionsβ potion effects unlocked at the level.
π XP Rewards
Players earn XP through various actions:
xpRewards:
default:
breakBlock: 1
placeBlock: 1
killMob: 10
tradeWithVillager: 5
craftItem: 2
defaultβ base XP values for common actions.specificβ detailed XP values for specific blocks, mobs, trades, and crafted items.
Example:
specific:
blocks:
DIAMOND_ORE: 50
mobs:
CREEPER: 25
trades:
LIBRARIAN: 15
crafting:
BEACON: 100
advancements:
end/root:
reward: 100
message: "%prefix% &d You received %xp% XP for reaching the End!"
π§ Summary
- Players earn XP through gameplay actions.
- Gained XP unlocks new tools, features, and commands.
- Fully customizable via
xpmode.yml.