KeepInvZone is a lightweight mod that lets you define custom zones where players keep their inventory and XP on death, just like having keepinventory enabled, but only in specific areas.
This mod is perfect for RPG servers, PvE zones, safe hubs, or any area where you want to avoid item and XP loss without enabling global keepinventory.
Players who die inside a defined zone will:
-Keep all items in their inventory
-Keep their XP level
-Instantly respawn with everything restored
If they die outside of any zone, everything works normally, their items drop as usual and their XP will be lost.
Commands:
/keepinvzone set <name> <x1> <y1> <z1> <x2> <y2> <z2>
Defines a new zone where keepInventory is active. The zone is saved instantly to a JSON file inside your world folder.
/keepinvzone remove <name>
Removes a previously created zone by name.
/keepinvzone list
Displays a list of all created zones and their coordinates.
Data:
-All zones are saved in world/keepinvzone/keepinvzones.json
-Zones persist across restarts
-No config file needed