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
  • 11
    Projects
  • 1.9K
    Downloads

More from NightOpsView all

  • Dynamic_light project image

    Dynamic_light

    Carry light wherever you go! Hold a torch, lantern, glowstone, sea lantern, copper lantern, lava bucket, or other light source to illuminate your surroundings without placing a single block.

    • 9
    • October 1, 2026
  • Area Miners project image

    Area Miners

    This Minecraft Bedrock Script API mod adds a 3x3 mining mechanic (commonly known as a Vein Miner or Hammer tool effect) that allows players to break a wide area of blocks simultaneously while consuming tool durability dynamically.

    • 65
    • September 30, 2026
  • Temporal Conquest: The First Encounter project image

    Temporal Conquest: The First Encounter

    An invasion from another universe has stolen the morning—defeat five bosses, survive the corruption, and restore the light before your 30 cycles run out.

    • 30
    • September 13, 2026
  • Safe Creeper & Double Jump project image

    Safe Creeper & Double Jump

    Safe Creeper & Double Jump is a Minecraft Bedrock utility mod that completely prevents creepers from destroying blocks while granting players an acrobatic double-jump ability complete with smoke effects and temporary fall protection.

    • 20
    • September 12, 2026
  • Dynamic_light project image

    Dynamic_light

    Carry light wherever you go! Hold a torch, lantern, glowstone, sea lantern, copper lantern, lava bucket, or other light source to illuminate your surroundings without placing a single block.

    • 9
    • October 1, 2026
  • Area Miners project image

    Area Miners

    This Minecraft Bedrock Script API mod adds a 3x3 mining mechanic (commonly known as a Vein Miner or Hammer tool effect) that allows players to break a wide area of blocks simultaneously while consuming tool durability dynamically.

    • 65
    • September 30, 2026
  • Temporal Conquest: The First Encounter project image

    Temporal Conquest: The First Encounter

    An invasion from another universe has stolen the morning—defeat five bosses, survive the corruption, and restore the light before your 30 cycles run out.

    • 30
    • September 13, 2026
  • Safe Creeper & Double Jump project image

    Safe Creeper & Double Jump

    Safe Creeper & Double Jump is a Minecraft Bedrock utility mod that completely prevents creepers from destroying blocks while granting players an acrobatic double-jump ability complete with smoke effects and temporary fall protection.

    • 20
    • September 12, 2026