Modscraper Modscraper Minecraft

Individual KeepInventory

Mod

Allows KeepInventory to be enabled just for specific players, rather than only everyone at once. Compatible with mods such as Curios, Gravestones, Accessories, and The Aether.

Type

Mod

Modrinth Downloads

19

Modrinth ID

SjnfFoPg

Last Updated

May 16, 2026

Description

Not everyone likes the KeepInventory gamerule, not everyone likes playing without it. Now both sides can be happy.

KeepInventory can be enabled for a player by running the "keepinventoryfor" command:

keepinventoryfor <username> enable/disable/query

"enable" will enable it for the target, "disable" will disable it for the target, and "query" will list whether it's enabled or disabled for the target.

When enabled, it should function identically to the gamerule. Inventory, EXP, and hunger are all kept on death only for these players.

Compatible with inventories (and related) from:

This is my first-ever (published) mod, so feel free to give feedback and post bug reports on the mod's github page. I've tested this a lot, but there may still be some things I've missed.

Compatibility for other mods will be considered in the future, so feel free to suggest mods for that as well.

Compatibility

Mod Loaders

Neoforge

Game Versions

1.21.1

Similar Mods

External Resources