Custom Keep Inventory

Quick rating

Community listing page, reviews here may not be monitored by the author.

Custom Keep Inventory

By FeSo4aOwner

No reviews yet

This project adds the rules that deop players can freely adjust the death penalty.

Mod Loaders
Minecraft
26.2

About

Description

Custom Keep Inventory

A Minecraft Datapack for 1.21.11+ that gives players full control over their death penalties. Choose how punishing death should be — from peaceful keep-inventory to hardcore item drops — all through an intuitive in-game GUI.


Overview

Custom Keep Inventory replaces the all-or-nothing nature of vanilla keepInventory with a flexible, per-player penalty system. Whether you prefer a relaxed experience or a punishing survival challenge, this datapack lets you (or your server admin) decide exactly what happens when you die.


Death Penalty Modes

Mode Behavior
Vanilla Death drops nothing (default)
Softcore Drops experience only; inventory is kept
Mediumcore Drops experience, and backpack items; keeps hotbar, armor, and off-hand item
Hardcore Drops experience and all items

Features

  • Per-Player Configuration — Every player chooses their own preferred penalty mode.
  • Global Override — Administrators can set a universal death penalty for all players.
  • Permission Control — Admins can toggle whether non-op players are allowed to change their own penalty mode.
  • In-Game GUI — Clean dialog-based interface, no command memorization needed.
  • Quick Access — Press G to instantly open your personal death penalty settings.
  • Esc Menu Integration — Access the full configuration menu directly from the pause screen.

How to Use

For Players

  1. Press G at any time to open your personal death penalty settings.
  2. Select your preferred mode from the dialog.
  3. Your choice takes effect immediately on your next death.

For Administrators

  1. Open the pause menu and click Custom Keep Inventory to enter the configuration.
  2. From the admin panel you can:
    • Adjust the global death penalty for all players.
    • Toggle whether non-op players may change their own penalty mode.
  • Changes apply in real time without requiring a reload.

Installation

  1. Download the datapack .zip file.
  2. Place it into your world's datapacks/ folder.
  3. Run /reload in-game or restart the server.
  4. The datapack will automatically initialize on first load.

Requirements

  • Minecraft Java Edition 1.21.11 or newer
  • No additional mods or plugins required

Permissions

Action Required Level
Change own penalty mode Non-op (if enabled by admin)
Change global penalty Operator (op)
Toggle player self-configuration Operator (op)

Notes

  • Players without operator status cannot access the admin configuration menu.
  • If the admin disables self-configuration, non-op players will be locked to the current setting.
  • The datapack is fully server-side; clients do not need to install anything.