promotional bannermobile promotional banner

NightOps:keep_XP_after_death

The Keep XP Script is a lightweight Minecraft Bedrock Behavior Pack add-on that automatically saves and restores a player's experience levels after death, eliminating the frustration of losing hard-earned XP while maintaining a seamless survival experience

โญ Keep XP Script

โ“ Why You Need This Mod

Losing all your experience after dying can be one of the most frustrating parts of Minecraft. Whether you're exploring dangerous caves, fighting bosses, or gathering valuable resources, a single mistake can wipe out hours of progress.

The Keep XP Script protects your hard-earned experience by automatically saving your XP before death and restoring it immediately after you respawn. This lets you focus on adventure and exploration instead of worrying about losing your levels.


๐Ÿ’€ How to Use

Automatic Protection: Simply play the game as normal—no commands or setup required.

XP Saved on Death: When you die, your current experience level and progress toward the next level are automatically stored.

Instant Restoration: After respawning, your saved XP is restored automatically within a moment.

Confirmation Effects: A level-up sound and Action Bar message confirm that your experience has been successfully restored.

Startup Notification: Players receive a message when joining the world, confirming that the Keep XP Script is active.


โš™๏ธ Script Features & Details

  • ๐Ÿ’š Automatically saves player XP before death.
  • โญ Restores both:
    • Experience Levels
    • Progress toward the next level
  • ๐Ÿ”„ Works automatically after every respawn.
  • ๐Ÿ”Š Plays a level-up sound when XP is restored.
  • ๐Ÿ“ข Displays an Action Bar confirmation message.
  • ๐Ÿงน Automatically clears temporary saved data after restoration.
  • โšก Lightweight and fully automatic—no commands or configuration required.

โŒ Current Limitations

  • Only protects experience points (XP).
  • Does not keep inventory items (use a Keep Inventory addon or gamerule for that).
  • Saved XP only exists temporarily until the player respawns.
  • Does not restore XP if the world is closed before the player respawns.
  • Designed for a vanilla-friendly experience without changing Minecraft's normal XP system beyond death recovery.
 

The NightOps:keep_XP_after_death Team

profile avatar
  • 6
    Projects
  • 388
    Downloads

More from NightOpsView all