ModsFinder

Conditional Keep Inventory

by Nerjal_Nosk

Conditional Keep Inventory lets the server choose which players and situations keep their inventory on death, through whitelist and blacklist conditions set in a config file or by command.

FabricQuiltServer required, client optionalMIT LicenseOpen source1.16 – 1.17.1

What it does

The mod changes the normal death rule so that a player's inventory is kept only when the configured conditions match. Conditions are set through a config file or a command, and both a whitelist and a blacklist can be used, so server owners decide exactly when the keep inventory rule applies and when it does not. Installation needs Fabric API on both Fabric and Quilt. Conditional Keep Inventory is server required and client optional, so the server must run it while players may leave it out, and it is published for Fabric and Quilt across five release versions, 1.16 – 1.17.1.

The author describes the mod as a way to allow choosing exactly when Keep Inventory applies, and the source code is public, so other developers can read how it works. The code is released under the MIT License, which makes the mod open source. Builds for 1.16, 1.16.2, 1.16.5, 1.17 and 1.17.1 are listed, and the latest files for Fabric and Quilt are version 1.1.3 for 1.17.1, dated 2022-05-15.

Key features

  1. Conditional keep inventory

    The keep inventory rule applies only when the configured conditions are met, instead of on every death.

  2. Whitelist and blacklist

    Conditions can be written as a whitelist or a blacklist, so specific cases can be allowed or excluded.

  3. Config file and commands

    Conditions can be set in a config file or changed with a command, without editing the code.

  4. Death drop twist

    A player's drops on death follow the same conditions, so the outcome of each death depends on the configured rule.

Compatibility

Latest build for each game version and loader.

1.17.11.1.31.1.3
1.171.1.31.1.3
1.16.51.1.1+Mc1.16Not available
1.16.21.1.1+Mc1.16Not available
1.161.1.1+Mc1.16Not available
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

Use cases

Hardcore-style servers

Server owners can keep inventories only in chosen situations, while other deaths keep the normal drop.

Who it’s for: Server owners who want a keep inventory rule with limits, and modpack authors who need a configurable death rule. Only the server needs the mod to apply its conditions.

Questions

Does Conditional Keep Inventory need Fabric API?

Yes. Fabric API is a required dependency on both Fabric and Quilt, so it must be installed next to the mod.

Does a player need the mod installed?

No. Server owners install it, and players can join with or without it.

How are the conditions set?

Through a config file or a command. The whitelist and blacklist let the server control when keep inventory applies.

Is the source code available?

Yes. The code is open source under the MIT License, and public links to the source code, issue tracker and wiki are provided.

In the catalog

Conditional Keep Inventory is one of 17,631 Equipment mods on ModsFinder, and one of 8,894 Equipment mods for Fabric. 4,181 mods support Minecraft 1.17.1.

More from Nerjal_Nosk

All projects

Similar mods

What the author says

Have you ever wanted to avoid loosing forever your stuff in some critical situations, but not to have the Keep Inventory set to true for all death? Haven't we all hoped not to lose our stuff to a slip in the void yet without losing the thrill to go get it back without dying again when killed by some mob in a deep cave?
Nerjal_Nosk, on the Modrinth page

Official listing

Owner
Nerjal_Nosk
Published
2021-09-12
Updated on Modrinth
2022-05-15
Facts verified
2026-10-15

Tags