π 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
π§ Summary
- Players earn XP through gameplay actions.
- Gained XP unlocks new tools, features, and commands.
- Fully customizable via
xpmode.yml
.