Skip to content

Keep Inventory

Enforces keepInventory gamerule to always be true. Never lose your items on death!

FabricNeoForgeForge
Loaders
FabricNeoForgeForge
Downloads on Modrinth
7.3K
Followers on Modrinth
7
versions
69
Updated
May 3, 2026May 3
Published
in 2026

At a glance

Runs on Fabric, NeoForge and Forge
For Minecraft 1.16.5–1.19.4, 1.20.1–26.1.2 …
Server only — players don't need to install it
Latest version — 1.0.0 from May 3, 2026
License MIT — free
Where it's needed
In gamenot neededOn serverrequired

Install on the server only; players don't need it

Game versions1.12.2, 1.16.5–1.19.4, 1.20.1–26.1.2 …

Keep Inventory

Never lose your items on death again! This mod automatically enforces the keepInventory gamerule to always be true, preventing any manual changes.

Features

  • ✅ Auto-Enable - Sets keepInventory=true when any world loads
  • ✅ Constant Enforcement - Checks every second to ensure it stays enabled
  • ✅ Auto-Correction - If changed to false, automatically sets it back to true

How It Works

The mod uses two mechanisms to ensure keepInventory is always enabled:.

Periodic Check: Every second (20 ticks), verifies the gamerule is still true. Auto-Fix: If it detects the gamerule was changed to false, it automatically corrects it back to true.

This means even if a player or admin tries to run /gamerule keepInventory false, the mod will change it back within 1 second!

FAQ

How to install Keep Inventory?

Install Fabric for your Minecraft version, download Keep Inventory for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Keep Inventory support?

Keep Inventory has builds for Minecraft 1.12, 1.12.2, 1.16.5–1.19.4, 1.20.1–26.1.2 ….

Is Keep Inventory needed on the server?

Server only — players don't need to install it

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More