Hi Everyone !
This is my first public Spigot plugin. Is adding a new enchantment to minecraft that let your items respawn with you when you die.
By using a Totem of undying on an tool in a smithing table, it's adding the enchant to your item.
Then if you die with this item in your inventory you will get it back when you respawn.
Everthing is configurable ! Like the enchantment name, color, applicable items...
Code (YAML):
#The name of the binding enchant in items lores
enchant_displayname
:
"Binding"
#The color that the enchant will be displayed in lores.
#See https://hub.spigotmc.org/javadocs/spigot/org/bukkit/ChatColor.html for all colors.
enchant_color
:
"AQUA"
#If true when you die one binding enchant level will be consumed.
#If level is 1 the enchant is deleted from the item.
consulmable_enchant_levels
: false
#The maximum level applicable on an item.
#If consulmable_enchant_levels is false levels are not displayed.
max_enchant_level
: 3
#Available modes : "symbol", "numeric", "roman".
level_display_mode
:
"symbol"
#If modes is "symbol".
enchant_levels_symbol
:
"웃"
#The material that is used to apply the enchant.
#See materials list here https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
receipe_material
:
"TOTEM_OF_UNDYING"
#Materials on which the enchantment is applicable.
#See materials list here https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
aplicable_items
:
-
"NETHERITE_SWORD"
-
"NETHERITE_SHOVEL"
-
"NETHERITE_PICKAXE"
-
"NETHERITE_AXE"
-
"NETHERITE_HOE"
-
"NETHERITE_HELMET"
-
"NETHERITE_CHESTPLATE"
-
"NETHERITE_LEGGINGS"
-
"NETHERITE_BOOTS"
-
"BOW"
-
"CROSSBOW"
-
"FISHING_ROD"
-
"ELYTRA"
-
"SHIELD"
-
"TRIDENT"
-
"FLINT_AND_STEEL"
-
"SHEARS"
You can also turn on the "consume" option that consume one level of the enchantment each time you die. You can also configure how many levels you can stack up on a item.
Hope you like, if you have questions or ideas of new features, write a comment !