跳到正文

Custom Keep Inventory

作者:FeSo4a

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

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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.
  1. 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.

常见问题

Custom Keep Inventory 支持哪些 Minecraft 版本?

Custom Keep Inventory 支持 Minecraft Java 版 1.21.11–26.2,共 5 个版本。下载时注意选择和你游戏版本一致的文件。

Custom Keep Inventory 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

FeSo4a 的其他作品

查看全部 →