自定义保留物品
适用于 Minecraft 1.21.11+ 的数据包,让玩家完全掌控死亡惩罚。选择从和平的保留物品到硬核的物品掉落等不同程度的惩罚——通过直观的游戏内 GUI 即可实现。
概览
Custom Keep Inventory 用灵活的、针对每个玩家的惩罚系统取代了原版 keepInventory 那种全有或全无的机制。无论你偏好轻松的游戏体验还是严苛的生存挑战,此数据包都允许你(或你的服务器管理员)精确决定死亡时发生什么。
死亡惩罚模式
| 模式 |
行为 |
| Vanilla |
死亡不掉落任何物品(默认) |
| Softcore |
仅掉落经验值;保留物品栏 |
| Mediumcore |
掉落经验值和背包中的物品;保留快捷栏、盔甲和副手物品 |
| Hardcore |
掉落经验值和所有物品 |
功能特性
- 玩家独立配置 — 每位玩家均可选择自己偏好的惩罚模式。
- 全局覆盖 — 管理员可以为所有玩家设置统一的死亡惩罚。
- 权限控制 — 管理员可以切换非 OP 玩家是否被允许更改自己的惩罚模式。
- 游戏内 GUI — 简洁的对话框式界面,无需记忆命令。
- 快速访问 — 按 G 键即可立即打开个人死亡惩罚设置。
- Esc 菜单集成 — 直接从暂停屏幕进入完整配置菜单。
使用方法
对于玩家
- 随时按 G 键打开个人死亡惩罚设置。
- 在对话框中选择你偏好的模式。
- 你的选择在下次死亡时立即生效。
对于管理员
- 打开暂停菜单并点击 Custom Keep Inventory 进入配置界面。
- 在管理员面板中你可以:
- 调整所有玩家的全局死亡惩罚。
- 切换非 OP 玩家是否可以更改自己的惩罚模式。
- 更改实时生效,无需重载。
安装方法
- 下载数据包的
.zip 文件。
- 将其放入世界文件夹的
datapacks/ 目录中。
- 在游戏中运行
/reload 或重启服务器。
- 数据包将在首次加载时自动初始化。
要求
- Minecraft Java Edition 1.21.11 或更高版本
- 无需额外模组或插件
权限说明
| 操作 |
所需等级 |
| 更改自己的惩罚模式 |
非 OP(若由管理员启用) |
| 更改全局惩罚 |
操作员 (op) |
| 切换玩家自我配置权限 |
操作员 (op) |
注意事项
- 没有操作员身份的玩家无法访问管理员配置菜单。
- 如果管理员禁用了自我配置,非 OP 玩家将被锁定在当前设置上。
- 此数据包完全基于服务器端;客户端无需安装任何内容。
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
- Press G at any time to open your personal death penalty settings.
- Select your preferred mode from the dialog.
- Your choice takes effect immediately on your next death.
For Administrators
- Open the pause menu and click Custom Keep Inventory to enter the configuration.
- 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
- Download the datapack
.zip file.
- Place it into your world's
datapacks/ folder.
- Run
/reload in-game or restart the server.
- 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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧