一个轻量级的 Paper/Spigot 插件,默认使所有掉落物不可破坏。
除非你明确允许,否则物品不会因火焰、熔岩、爆炸、仙人掌、铁砧、魔法或龙息而被销毁。
工作原理:
每个掉落的物品实体都受到伤害保护。只有你在 config.yml 中特定破坏类别下列出的物品才能被该方法销毁。
虚空伤害和自然消失始终启用
插件绝不会干扰这些机制。
配置:
首次运行后,编辑 plugins/NoItemDestruction/config.yml。
如何添加物品:
每个类别初始为空;这意味着所有物品都受该伤害类型的保护:
fire: [] ← 空列表,所有物品均受火焰保护
lava: [] ← 空列表,所有物品均受熔岩保护
要_允许特定物品被销毁_,请将 [] 替换为下方的列表。
每个物品独占一行,以 - (两个空格、一个连字符、然后一个空格)开头:
fire:
- minecraft:oak_log
- minecraft:stick
lava:
示例:
(橡木原木和木棍可以在火中燃烧:)
fire:
- minecraft:oak_log
- minecraft:stick
(橡木原木可以被熔岩销毁:)
lava:
(TNT 可以被爆炸销毁:)
explosion:
其他所有物品保持完全保护(空 = 受保护):
cactus: []
anvil: []
magic: []
dragon_breath: []
类别
| 类别 |
伤害来源 |
fire |
火方块、火蔓延 |
lava |
接触熔岩 |
explosion |
TNT、苦力怕、重生锚等 |
cactus |
接触仙人掌方块 |
anvil |
被坠落的铁砧压碎 |
magic |
标记为 MAGIC 的药水/投射物伤害 |
dragon_breath |
末影龙吐息攻击 |
物品使用 namespace:id 格式(例如 minecraft:diamond、minecraft:oak_log)。
命令:
| 命令 |
描述 |
权限 |
/nid reload |
从磁盘重新加载配置 |
nitemdestruction.reload |
nitemdestruction.reload 权限默认授予 OP。
_要求
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:
example:
(Oak logs and sticks can burn in fire:)
fire:
- minecraft:oak_log
- minecraft:stick
(Oak logs can be destroyed by lava:)
lava:
(TNT can be destroyed by explosions:)
explosion:
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
评论 0
登录后参与评分
还没有评论,来抢沙发吧