The Blessing of Return is a new enchantment that can be applied to any items with durability. When you die, items enchanted with Blessing of Return will be returned to you at no cost, but there's a catch. The enchantment has a 10% chance to fail. When it fails, the item will still be returned to you but only with 5% of its durability remaining.
Configuration
Configure by using /function clgd.enchant:return_blessing/settings/menu
Options
Damage Percent - The percent of the item's total durability
Damage Type - Determines how the damage percent is used.
When Damage Type
is Set Percent
the item's damage will be set to equal the Damage Percent
When Damage Type
is Remove Percent
the item will lose damage equal to Damage Percent
of the item's total durability
Damage Chance - the percent chance for the Damage Percent
to be applied to an enchanted item on death