
partialkeepinv
Keeps shulker boxes, container items (ender chests, bundles) and all non-stackable gear (tools, weapons, armour, elytra, etc.) on death while everything else drops normally. Adds configurable 1–5 level XP loss and light armour durability damage on each dea
1.0.0
Compatibility
Changes
1.0.0 – Initial release
-
Added partial keep inventory system for Paper 1.21.10:
- Keeps all shulker boxes and all non-stackable items (tools, weapons, armour, elytra, etc.) on death.
- All other items (blocks, food, stackables) still drop normally.
-
Implemented slot-preserving restore:
- Kept items are restored to their original inventory slots (hotbar + main inventory).
- Off-hand item is restored when possible.
- Armour is automatically re-equipped on respawn.
-
Added death penalties to keep risk:
- Player loses a random 1–5 XP levels on each death (no XP orbs dropped).
- Each worn armour piece takes about 3% of its max durability damage per death (cannot break purely from the death penalty; at least 1 durability is left).
-
No commands, no permissions, no external dependencies.
Requires Paper 1.21.10+ and Java 21+, with/gamerule keepInventory falsein worlds where you want this behaviour.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:ZootlZ8S:6p6uLfc3"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:ZootlZ8S:6p6uLfc3"
}
