Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Tags
Creators
Details
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:
- The Aether Team's The Aether
- HenkelMax's GraveStone Mod
- TheIllusiveC4's Curios API
- Wisp Forest's Accessories
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.

