DeathChest
死亡宝箱:在玩家死亡时安全存储物品和经验,适用于 Paper/Purpur 26.3
版本 2.1.0 · Minecraft 26.3 · Java 25 · 服务端
当玩家死亡时,DeathChest 会在死亡地点的保护箱中存储其物品和经验。该箱子方块仅作为标记:物品实际存储在一个虚拟的 45 格 GUI 界面中,从而关闭了许多原版刷物漏洞和漏斗提取途径。所有者会收到可点击的位置消息、“全部收集并装备”按钮、临时保护、全息图、粒子效果、可配置的过期时间以及可选的公开拾取功能。
功能
- 虚拟物品存储:物品存储在 GUI 中而非箱子方块内,因此方块始终保持为空(不会被漏斗抽取,也不会出现原版刷物表面)。
- 经验存储:支持配置百分比存储,并提供点击领取指示器。
- 全部收集并装备:一键转移所有物品并穿戴盔甲。
- 临时保护:可配置保护持续时间;在保护期内可选择性允许击杀者访问,过期后允许公开拾取。
- 箱子过期:支持
DROP_ITEMS(掉落物品)、DELETE_ITEMS(删除物品)或 KEEP_PUBLIC(保留供公开拾取)操作。
- 方块保护:防止破坏、爆炸、漏斗、活塞以及火焰/熔岩摧毁箱子。
- 安全放置:自动搜索安全位置,处理虚空死亡和水面上放置的情况。
- 全息图(盔甲架实现,无依赖)和箱子周围的粒子效果。
- 每个玩家的箱子数量限制,支持覆盖最旧的箱子选项。
- 可点击坐标:用于传送或定位你的箱子。
- SQLite 持久化、多语言支持(英语、葡萄牙语、法语),以及开发者 API (
DeathChestAPI)。
命令
| 命令 |
描述 |
权限节点 |
/deathchest locate (别名 /dc, /dchest) |
定位你的死亡宝箱 |
deathchest.locate |
/deathchest list |
列出死亡宝箱 |
deathchest.admin |
/deathchest remove |
移除一个死亡宝箱 |
deathchest.admin |
/deathchest reload |
重载配置文件 |
deathchest.admin |
/deathchest cleanholograms |
清理孤立的全息图 |
deathchest.admin.clean |
权限
| 节点 |
描述 |
默认值 |
deathchest.use |
死亡时生成死亡宝箱 |
true |
deathchest.locate |
定位自己的死亡宝箱 |
true |
deathchest.admin |
完全管理死亡宝箱命令 |
op |
deathchest.admin.clean |
清理孤立全息图 |
op |
deathchest.bypass |
绕过保护并访问任何死亡宝箱 |
op |
deathchest.break.others |
破坏其他玩家的死亡宝箱 |
op |
配置
config.yml 配置亮点:
general:
language: en_US # en_US | pt_PT | fr_FR
worlds:
mode: blacklist # whitelist | blacklist
list: [world_example_disabled]
chest:
create-with-keep-inventory: false
store-xp: true
xp-percentage: 1.0
max-chests-per-player: 5
override-oldest-on-max: true
placement:
safe-search-radius: 10
void-placement-radius: 16
void-y-threshold: -64
water-surface-placement: true
protection:
duration-seconds: 300 # 0 = 永久直到被领取
allow-public-loot: false
allow-killer-loot-during-protection: false
allow-public-loot-after-expiry: true
expiry-seconds: 3600 # 0 = 永不过期
expiry-action: DROP_ITEMS # DROP_ITEMS | DELETE_ITEMS | KEEP_PUBLIC
prevent-breaking: true
explosion-proof: true
hopper-proof: true
lava-safe: true
piston-proof: true
visuals:
hologram-enabled: true
particles-enabled: true
保护与过期
两个独立的时间计时器控制访问权限:
duration-seconds —— 保护窗口期,在此期间只有所有者(如果启用,还包括击杀者)可以拾取箱子中的物品。
allow-public-loot-after-expiry —— 当为 true 时,一旦保护窗口结束,任何人都可以拾取。使用默认的 duration-seconds: 300,意味着其他玩家在死亡 5 分钟后可以拾取箱子。将其设置为 false 以保持箱子仅供所有者访问。
expiry-seconds / expiry-action —— 箱子在被移除前存在多久,以及移除时物品会发生什么。
安装
- 需要 Paper 或 Purpur 26.3 以及 Java 25(2.0.0 运行于 26.2,1.x 版本运行于 1.21.x)。
- 将 JAR 文件放入
plugins/ 目录,并启动服务器一次以生成 config.yml。
- 检查
protection 部分(特别是公开拾取选项),然后运行 /deathchest reload。
依赖项
- PlayerSettings (可选) —— 如果已安装,提供每个玩家的语言选择功能。
- BuildersDream (可选) —— 如果已安装,会从死亡宝箱中过滤“梦想物品”。
无硬性依赖。SQLite 驱动已捆绑;全息图使用盔甲架实现(无需全息图插件)。
支持 / 源码
源代码:
DeathChest
Death chests that safely store items and XP on death, for Paper/Purpur 26.3
Version 2.1.0 · Minecraft 26.3 · Java 25 · Server-side
When a player dies, DeathChest stores their items and XP in a protected chest at
the death location. The chest block is only a marker: the items live in a
virtual 45-slot GUI, which closes many vanilla dupe and hopper vectors. Owners
get a clickable location message, a "Collect All & Equip" button, temporary
protection, holograms, particles, configurable expiry and optional public
looting.
Features
- Virtual item storage: items are held in a GUI, not in the chest block, so
the block is always empty (no hopper pulls, no vanilla dupe surface).
- XP storage with a configurable percentage and a click-to-claim indicator.
- Collect All & Equip button that transfers everything and equips armor.
- Temporary protection with configurable duration; optional access for the
killer during protection and public looting after it expires.
- Chest expiry with
DROP_ITEMS, DELETE_ITEMS or KEEP_PUBLIC actions.
- Block protection: prevent breaking, explosions, hoppers, pistons and
fire/lava from destroying the chest.
- Safe placement: searches for a safe spot, handles void deaths and
water-surface placement.
- Holograms (armor stands, no dependency) and particles around the
chest.
- Per-player chest limits with optional override of the oldest chest.
- Clickable coordinates to teleport/locate your chest.
- SQLite persistence, multi-language (English, Portuguese, French), and a
developer API (
DeathChestAPI).
Commands
| Command |
Description |
Permission |
/deathchest locate (aliases /dc, /dchest) |
Locate your death chests |
deathchest.locate |
/deathchest list |
List death chests |
deathchest.admin |
/deathchest remove |
Remove a death chest |
deathchest.admin |
/deathchest reload |
Reload the configuration |
deathchest.admin |
/deathchest cleanholograms |
Clean up orphan holograms |
deathchest.admin.clean |
Permissions
| Node |
Description |
Default |
deathchest.use |
Have death chests created on death |
true |
deathchest.locate |
Locate your own death chests |
true |
deathchest.admin |
Full admin access to death chest commands |
op |
deathchest.admin.clean |
Clean orphan holograms |
op |
deathchest.bypass |
Bypass protection and access any death chest |
op |
deathchest.break.others |
Break other players' death chests |
op |
Configuration
Highlights of config.yml:
general:
language: en_US # en_US | pt_PT | fr_FR
worlds:
mode: blacklist # whitelist | blacklist
list: [world_example_disabled]
chest:
create-with-keep-inventory: false
store-xp: true
xp-percentage: 1.0
max-chests-per-player: 5
override-oldest-on-max: true
placement:
safe-search-radius: 10
void-placement-radius: 16
void-y-threshold: -64
water-surface-placement: true
protection:
duration-seconds: 300 # 0 = permanent until claimed
allow-public-loot: false
allow-killer-loot-during-protection: false
allow-public-loot-after-expiry: true
expiry-seconds: 3600 # 0 = never expire
expiry-action: DROP_ITEMS # DROP_ITEMS | DELETE_ITEMS | KEEP_PUBLIC
prevent-breaking: true
explosion-proof: true
hopper-proof: true
lava-safe: true
piston-proof: true
visuals:
hologram-enabled: true
particles-enabled: true
Protection vs. expiry
Two separate timers control access:
duration-seconds — the protection window during which only the owner
(and, if enabled, the killer) can loot the chest.
allow-public-loot-after-expiry — when true, once the protection window
ends, anyone can loot. With the default duration-seconds: 300, that means
other players can loot the chest 5 minutes after the death. Set it to false
to keep chests owner-only.
expiry-seconds / expiry-action — how long the chest exists before
it is removed, and what happens to the items when it does.
Installation
- Requires Paper or Purpur 26.3 and Java 25 (2.0.0 runs on 26.2, 1.x on 1.21.x).
- Drop the JAR into
plugins/ and start the server once to generate
config.yml.
- Review the
protection section (especially the public-loot options), then
run /deathchest reload.
Dependencies
- PlayerSettings (optional) — per-player language selection, if installed.
- BuildersDream (optional) — filters "dream items" out of death chests, if
installed.
No hard dependencies. The SQLite driver is bundled; holograms use armor stands
(no hologram plugin required).
Support / Source
Source code:
评论 0
登录后参与评分
还没有评论,来抢沙发吧