No Item Destruction

No Item Destruction

Prevents dropped items from being destroyed.

18 downloads

A lightweight Paper/Spigot plugin that makes all dropped items indestructible by default. Items cannot be destroyed by fire, lava, explosions, cacti, anvils, magic, or dragon breath unless you explicitly allow it.

How It Works:

Every dropped item entity is protected from damage. Only items you specifically list under a destruction category in config.yml will be destroyable by that method.

Void damage and natural despawn are always enabled The plugin never interferes with those.

Configuration:

After first run, edit plugins/NoItemDestruction/config.yml.

How to add items:

Each category starts empty; meaning all items are protected from that damage type:

fire: [] ← empty list, everything is protected from fire lava: [] ← empty list, everything is protected from lava

To allow specific items to be destroyed, replace [] with a list underneath. Each item goes on its own line, starting with - (two spaces, a dash, then a space):

fire:

  • minecraft:oak_log
  • minecraft:stick

lava:

  • minecraft:oak_log

example:

(Oak logs and sticks can burn in fire:) fire:

  • minecraft:oak_log
  • minecraft:stick

(Oak logs can be destroyed by lava:) lava:

  • minecraft:oak_log

(TNT can be destroyed by explosions:) explosion:

  • minecraft:tnt

Everything else stays fully protected (empty = protected): cactus: [] anvil: [] magic: [] dragon_breath: []

Categories

Category Damage Sources
fire Fire blocks, fire tick
lava Contact with lava
explosion TNT, creepers, respawn anchors, etc.
cactus Contact with cactus blocks
anvil Crushed by a falling anvil
magic Potion / projectile damage flagged as MAGIC
dragon_breath Ender Dragon breath attack

Items use namespace:id format (e.g., minecraft:diamond, minecraft:oak_log).

Commands:

Command Description Permission
/nid reload Reload config from disk nitemdestruction.reload

The nitemdestruction.reload permission defaults to OPs.

_Requirements

  • Paper 1.20+
  • Java 17+_