Logo
MINECRAFTBIBLE
Items
Items

All game items

Blocks
Blocks

Building blocks

Mobs
Mobs

Creatures & monsters

Biomes
Biomes

World biomes

Structures
Structures

Generated structures

Recipes
Recipes

Crafting guides

Advancements
Advancements

Achievements

Loot Tables
Loot Tables

Drop rates

Tags
Tags

Item groupings

All Versions
View all data →
Capes
Cape ArchiveNEW

Browse rare Minecon capes, OptiFine capes, and custom capes from players worldwide

Browse

Player Database
Player DatabasePopular

Search any player

Skin Browser
Skin Browser

Browse & download skins

Cape Gallery
Cape GalleryNEW

Minecon & OptiFine capes

Seed Vault
Seed Vault

Curated seeds

Learn

Guides
GuidesNew

Tutorials & tips

Blog
Blog

News & updates

Community

Community Hub
Community HubHub

Posts, discussions & more

All Versions
View community →
Seed Analyzer
Seed Analyzer

World seed analysis

Loot Explorer
Loot Explorer

Drop rates

Crafting Calculator
Crafting Calculator

Material planning

Enchant Calculator
Enchant Calculator

Probability math

Redstone Lab
Redstone Lab

Signal timing

Trading Profit
Trading Profit

Villager ROI

All Versions
View all tools →
Mods
Mods

Browse all mods

Plugins
Plugins

Server plugins

Resource Packs
Resource Packs

Textures & sounds

Shaders
Shaders

Visual enhancements

Datapacks
Datapacks

World logic

Scanner
Mod Intelligence

Scan & analyze any mod

All Versions
View all mods →
Loading...
IntroductionIntroductionVersion HistoryVersion HistoryGuidesGuidesBlog & NewsBlog & News
ItemsItemsBlocksBlocksMobsMobsRecipesRecipesBiomesBiomesStructuresStructuresAdvancementsAdvancementsLoot TablesLoot TablesTagsTags
ModsModsPluginsPluginsResource PacksResource PacksShadersShadersDatapacksDatapacks

MinecraftBible

The Ultimate Wiki

Logo
MINECRAFTBIBLE

The ultimate Minecraft reference. Every item, block, mob, and recipe documented with precision.

Community

  • Player Database
  • Skin Browser
  • Cape Gallery
  • Community Hub
  • Seed Vault

Database

  • Items
  • Blocks
  • Mobs
  • Recipes
  • Biomes
  • Structures

Tools

  • Seed Analyzer
  • Mod Intelligence
  • Crafting Calculator
  • Enchant Calculator

Mods & Packs

  • Mods
  • Plugins
  • Resource Packs
  • Shaders
  • Datapacks

© 2026 MinecraftBible. Not affiliated with Mojang or Microsoft.

PrivacyTermsContact
Smart Keep Inventory
ModMIT

Smart Keep Inventory

Configure when keep inventory should be enabled

156
Downloads
0
Followers
2 months ago
Updated
📦
9
Versions
game-mechanicsmanagementutilityfabricneoforge
Download Latestv1.21.11-1.0.1-fabricView on Modrinth

📖About Smart Keep Inventory

neoforge fabric

discord-singular kofi-singular-alt patreon-singular

Smart Keep Inventory

In vanilla you can only either have keep inventory enabled all time or not.
Smart Keep Inventory allows you to decide under which conditions the players inventory should be kept upon death.

For example you can have it configured to only allow keep inventory if the player is killed by a specific mob.

By default this mod makes it so players will keep their inventory and experiences if they are killed by bosses (mobs tagged as c:bosses)

⚙️ Configuration

Configuration is done via a datapack.

Conditions are defined via a file under data/<namespace>/smart_keep_inventory/checks
and have the following format:

{
  "player": <EntityPredicate>, // Optional. This is the player that died
  "killer": <EntityPredicate>, // Optional. This entity that killed the player. Directly or indirectly
  "damage": <DamageSourcePredicate>, // Optional. The damagesource that killed the player
  "keepExperience": <true | false>, // Default true. Whether to also keep the players experiences or not
  "disabled": <true | false> // Optional. Only used to disable an EXISTING condition with the same id
}

For more information about predicates check out the minecraft wiki under https://minecraft.wiki/w/Predicate

Example:

This allows the player to keep their inventories if they are killed by a zombie but not their xp.

{
  "killer": {
    "type": "minecraft:zombie"
  },
  "keepExperience": false
}

The following is the default configuration of the mod applying to bosses:

{
  "killer": {
    "type": "#c:bosses"
  }
}

Compability

This mod should support any mod adding inventories (Curios, Accessory etc.) provided they respected the gamerule already.

Gravestone mods should also be supported if they already check the gamerule. If a player keeps their inventory a grave should not be generated in that case.

👥 Team & Contributors

flemmli97
flemmli97Owner

⚙️ Compatibility

Environment
🖥️ Server-side
Loaders
fabricneoforge
Minecraft Versions
1.21.11

🔗 Links

Modrinth Page