Sueta

—DarkEnchantments—

1.1

Replace enchantments with dark deals

·Plugin

NOTE:
1. This plugin ONLY works with 1.13.2. Support for other versions is ABANDONED.

2. This plugin depends on a separate plugin I made, found here:
https://www.spigotmc.org/resources/core-by-yona168.57947/

With that, enjoy!

Everyone knows the story. You badly want that one enchantment, and after 5 level 30 enchantments are still unsuccessful. So there you are, grinding away, wasting precious time.

But what if there was another way?

A Dark way?

The witches of the underworld have decided to allow you to deal with them for the resource that they need: Blood shards. In return, they will give you enchantment books, which you can use to enchant your equipment at an altar.

HOW TO GET BLOOD SHARDS
Kill mobs, friendly and hostile. The chance of hostiles, players, and nonhostiles dropping blood shards upon death can be configured in the config file. You can also set if they should drop at all, and how many.

WHAT TO DO WITH THEM
Summon a witch by using /de summon. From a witch, you can buy a wand of darkness, an essential for altar enchanting, or some dark enchantment books. These witches will despawn on chunk unload, but you can also shift click to remove them

Witch GUI




USING THE ALTAR
The altar is a three-layer structure:

Layers of the altar






The altar has 8 chests around it. Each one can only have ONE book in it, and the book must be in the center slot. For example, lets say I wanted to enchant a sword with unbreaking one and sharpness two. I would use three chests: One for unbreaking, and two for sharpness. This is how a book should look in the chest:

Book in Chest


Then, we wait for night. When the time comes we throw whatever item we want to enchant onto the redstone block in the center of the altar.
Then, we simply click the redstone block with the wand of darkness. Some lightning will flash, and the item will be enchanted. The wand of darkness will deteriorate.

Enchanted item


And that's it!

options.yml
#Amount of minutes anyone without the permission to  
 #Amount of minutes anyone without the permission to bypass it or that is op has to wait  
 #before executing /de summon after doing so   
summon witch cooldown   :  5 
 #Entities drop blood shards when killed. This  
 #section represents options for hostile mobs,  
 #non-hostile mobs, and players  
 #Keys:  
 #enabled: Whether this category of mob should drop blood shards  
 #amount: a range of amounts of shards that the category of mob will drop.  
 #        NOTE: this MUST be written as "minimum-maximum." If you want it to be one constant,  
 #        for example 5, you would write "5-5."  
 #chance: The percent chance that this category of mob will drop shards at all  
 
hostile-amount  :  
  enabled   :  true  
  amount   :   "3-5"   
  chance   :  30  
nonhostile-amount  :  
  enabled   :  true  
  amount   :   "1-3"   
  chance   :  20  
player-amount  :  
  enabled   :  true  
  amount   :   "10-15"   
  chance   :  70 

 #Whenever the enchanting ritual is cast, it must be done with an altar item.  
 #This is obtainable by those with the correct permissions by a command,  
 #but also buyable in the witch shop.  
 #Keys:  
 #buyable: If it is buyable in the witch shop  
 #price: if buyable is true, how many blood shards it takes to buy one  
 #uses: amount of uses it will have before it breaks.   
altar-item  :  
  buyable   :  true  
  price   :  50  
  uses   :  10 

 #Each enchantment can be bought as a book to be used in the enchanting ritual  
 #Each enchantment has an "amt" key, which is the amount of blood shards one  
 #will cost, and an "enabled" key, which should be either "true" or "false",  
 #that represents if the enchantment should be included in the shop at all or not.  
 #A list of enchantments as written here may be found here:  
 #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html   
enchantments  :  
  power  :  
    amt   :  40  
    enabled   :  true  
  infinity  :  
    amt   :  200  
    enabled   :  true  
  punch  :  
    amt   :  40  
    enabled   :  true  
  binding_curse  :  
    amt   :  40  
    enabled   :  true  
  sharpness  :  
    amt   :  40  
    enabled   :  true  
  bane_of_arthropods  :  
    amt   :  40  
    enabled   :  true  
  smite  :  
    amt   :  40  
    enabled   :  true  
  depth_strider  :  
    amt   :  40  
    enabled   :  true  
  efficiency  :  
    amt   :  40  
    enabled   :  true  
  unbreaking  :  
    amt   :  40  
    enabled   :  true  
  fire_aspect  :  
    amt   :  40  
    enabled   :  true  
  frost_walker  :  
    amt   :  40  
    enabled   :  true  
  knockback  :  
    amt   :  40  
    enabled   :  true  
  fortune  :  
    amt   :  40  
    enabled   :  true  
  looting  :  
    amt   :  40  
    enabled   :  true  
  luck_of_the_sea  :  
    amt   :  40  
    enabled   :  true  
  lure  :  
    amt   :  40  
    enabled   :  true  
  mending  :  
    amt   :  40  
    enabled   :  true  
  respiration  :  
    amt   :  40  
    enabled   :  true  
  protection  :  
    amt   :  40  
    enabled   :  true  
  blast_protection  :  
    amt   :  40  
    enabled   :  true  
  feather_falling  :  
    amt   :  40  
    enabled   :  true  
  fire_protection  :  
    amt   :  40  
    enabled   :  true  
  projectile_protection  :  
    amt   :  40  
    enabled   :  true  
  silk_touch  :  
    amt   :  40  
    enabled   :  true  
  sweeping  :  
    amt   :  40  
    enabled   :  true  
  thorns  :  
    amt   :  40  
    enabled   :  true  
  vanishing_curse  :  
    amt   :  40  
    enabled   :  true  
  aqua_affinity  :  
    amt   :  40  
    enabled   :  true  
  loyalty  :  
    amt   :  40  
    enabled   :  true  
  impaling  :  
    amt   :  40  
    enabled   :  true  
  riptide  :  
    amt   :  40  
    enabled   :  true  
  channeling  :  
    amt   :  40  
    enabled   :  true  
  flame  :  
    amt   :  40  
    enabled   :  true  
    enabled   :  true

NOTE: Items will only enchant if these conditions are ALL true:
-There is one book in each occupied chest, and each book is in the center slot.
-It is night.
-The item must normally be able to be enchanted
-The item is normally able to obtain the enchantments you are giving it.
-You have permission to do so.
-You have a rod of darkness with at least one usage left.

If you try to enchant more than one item at once, the altar will try to enchant the one it picks at random.

COMMANDS
-/de help [page]-A generic help command to show other commands
-/de summon-Summons a witch near the player if there is room. Has cooldown configurable in the config file
-/de givedrops [player] [amount]-Admin command to give blood drops to a player
-/de darknessrod-Admin command to obtain the rod of darkness

PERMISSIONS:
Each command has a specific permission node that can be deduced by doing: de.commands.[commandName]

The summon command has an additional permission, de.bypasscooldown, which allows those with the permission to bypass the cooldown for summoning witches.

-de.witch.interact-Permission to interact with the witches
-de.altar.use-Permission to use the altar

PLEASE drop any suggestions and feedback in the comments, I appreciate it!
*Also any bugs you find, but hopefully those are kept to a minimum.

Enjoy!

Similar projects

Plugin →