LootrDeathChest
LootrDeathChest 是一款轻量级的 Minecraft 插件,会在玩家死亡位置生成一个包含其掉落物品的箱子。
它旨在与 Lootr 兼容,同时保持完全独立且无冲突。
该插件防止物品散落在地面上,而是将它们安全地存储在箱子里面。
功能
- 在玩家死亡位置生成死亡箱子
- 将所有掉落物品安全地存储在箱子内
- 防止物品因消失或散落而丢失
- 轻量级且简单的实现方式
- 完全兼容 Lootr 插件(无需依赖)
- 支持多个 Minecraft 版本
兼容性
已在以下版本测试并设计运行:
- Minecraft 1.20.x
- Minecraft 1.21.x
该插件仅使用标准的 Spigot/Bukkit API,因此能够在多个版本间保持兼容。
安装
- 下载最新的编译好的
.jar 文件。
- 将文件放入服务器的
plugins 文件夹中。
- 重启或重载服务器。
/plugins/LootrDeathChest.jar
工作原理
当玩家死亡时:
- 插件拦截掉落的物品。
- 在死亡位置放置一个箱子。
- 所有掉落物品被存入箱子中。
这可以保持区域整洁并防止物品丢失。
配置
示例 config.yml:
death-chest:
remove-time: 300
hologram: false
protect-owner: false
您可以修改这些值以更改死亡箱子的行为。
与 Lootr 的兼容性
LootrDeathChest 旨在与 Lootr 插件共存,而不会修改或与它的内部系统进行交互。
两个插件可以安全地并行运行。
从源代码构建
要求:
使用以下命令构建插件:
mvn clean package
编译后的插件将出现在:
target/LootrDeathChest-1.0.jar
作者
Sunny Mittal
GitHub:
LootrDeathChest
LootrDeathChest is a lightweight Minecraft plugin that creates a chest containing a player's dropped items at their death location.
It is designed to be compatible with Lootr while remaining completely independent and conflict-free.
This plugin prevents items from scattering on the ground and instead stores them safely inside a chest.
Features
- Creates a death chest at the player's death location
- Stores all dropped items safely inside the chest
- Prevents item loss from despawning or scattering
- Lightweight and simple implementation
- Fully compatible with Lootr plugin (no dependency required)
- Works across multiple Minecraft versions
Compatibility
Tested and designed to run on:
- Minecraft 1.20.x
- Minecraft 1.21.x
The plugin only uses the standard Spigot/Bukkit API, which allows it to remain compatible across multiple versions.
Installation
- Download the latest compiled
.jar file.
- Place the file inside your server's
plugins folder.
- Restart or reload the server.
/plugins/LootrDeathChest.jar
How It Works
When a player dies:
- The plugin intercepts the dropped items.
- A chest is placed at the death location.
- All dropped items are stored inside the chest.
This keeps the area clean and prevents items from being lost.
Configuration
Example config.yml:
death-chest:
remove-time: 300
hologram: false
protect-owner: false
You can modify these values to change how the death chest behaves.
Compatibility with Lootr
LootrDeathChest is designed to coexist with the Lootr plugin without modifying or interacting with its internal systems.
- No API linking
- No shared storage
- No conflicts
FOR NOW
Both plugins can run side-by-side safely.
Building from Source
Requirements:
Build the plugin with:
mvn clean package
The compiled plugin will appear in:
target/LootrDeathChest-1.0.jar
Author
Sunny Mittal
GitHub:
评论 0
登录后参与评分
还没有评论,来抢沙发吧