-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add player experience (XP) system and syncing
Implements XP tracking and visualization with the following changes: - Add `Xp` component to track player experience points - Add `XpVisual` helper to calculate level/progress from XP amount - Add system to sync XP changes to clients - Update `/xp` command to modify player's XP directly - Initialize XP component during player login The implementation follows Minecraft's XP/level calculation formula, supporting levels 0-63 with proper progress bar visualization.
- Loading branch information
1 parent
a7c168e
commit 50c1f10
Showing
4 changed files
with
201 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters