Death Drop Protection

Death Drop Protection

A lightweight PaperMC plugin that protects items dropped on player death from configurable damage causes (e.g. explosions, lava, fire, and the void).

9 downloads

Death Item Protection

A lightweight PaperMC plugin that protects items dropped on player death from configurable damage causes such as explosions, lava, fire, and the void.


Features

  • Protects dropped items after a player's death
  • Configurable protection using Bukkit/Paper DamageCause
  • Optional protection for all dropped items
  • Optional prevention of item despawning
  • Optional removal of protection when an item is picked up
  • Lightweight and easy to use

Supported damage causes

  • ENTITY_EXPLOSION
  • BLOCK_EXPLOSION
  • LAVA
  • FIRE
  • FIRE_TICK
  • VOID
  • CONTACT

Installation

  1. Download the plugin .jar
  2. Place it into your server's plugins/ folder
  3. Start or restart the server

Configuration

Example config.yml

protect_all_items: false

prevent_despawn: false

remove_protection_on_pickup: true

protect_against:
  - "ENTITY_EXPLOSION"
  - "BLOCK_EXPLOSION"
  - "LAVA"
  - "FIRE"
  - "FIRE_TICK"
  - "VOID"
  - "CONTACT"

Settings

Option Description
protect_all_items Protects all dropped items instead of only death drops
prevent_despawn Prevents protected items from disappearing after 5 minutes
remove_protection_on_pickup Removes the protection tag when an item is picked up
protect_against List of damage causes that should not destroy protected items

Restart the server after changing the configuration.


Compatibility

  • PaperMC 1.21.11

License

This project is licensed under the MIT License.