apavarino / Deadchest

Minecraft Plugin - Keep your inventory in a chest when you die !
https://dev.bukkit.org/projects/dead-chest
GNU General Public License v3.0
18 stars 17 forks source link

[Feature Request] Lower item durability when creating a chest. #68

Closed VonSparq closed 8 months ago

VonSparq commented 9 months ago

Is your feature request related to a problem? Please describe. I'm using SMPtweaks's decrease_item_durability_on_death tweak, it reduces item durability per set percentage for items with durability on player death, the tweak however does not work with Dead Chest.

Describe the solution you'd like I would love it if you could implement a feature like this, it could just be a config option like item-durability-loss-on-death: and accept values from 1.0 to 0.0 (defaulting to 0.0 to maintain current behavior) where 0.02 would reduce the durability by 2%.

Describe alternatives you've considered I tried using the decrease_item_durability_on_death tweak from SMPtweaks, however the durability is not lowered when a chest is generated.

apavarino commented 8 months ago

Hello, thanks for the suggestion, feature added on 4.18.0