Creating recipes for custom enchantments - Loikas/MinecraftPlugins GitHub Wiki

A guide to changing custom enchantment recipes in ExpandedEnchants

If you don't like the default crafting recipes for custom enchantments added by this plugin you can override them by adding custom enchantments yourself. This is lucky for you not difficult at all. How you can do this is as follows:

First go to the ExpandedEnchants folder in your plugins folder and create a new file named 'recipes.yml' The folder should now have 3 files: config.yml, recipes.yml and SaveData.yml

Open your newly created recipes.yml and add the name of the recipe you want to alter as follows:

ee_recipe_

and then the name of the recipe which can be: antigravity, assassin, autosmelt, beheading, deflect, disarming, disruption, direct, elemental, owleyes, expboost, feedingmodule, gourmand, healthboost, heavenslightness, icy, lavawalker, leaping, lifesteal, lumberjack, replanting, shadowstep, soulbound, splitting, stepping, stonefists, thermalplating, traveler, unbreakable, veinmine or wide

it then should look like this: ee_recipe_antigravity

You should know that the crafting grid in minecraft is 3x3 In the plugin the slots are named from A to J starting in the top left square with A, going from left to right until the bottom right square which is J:

Crafting grid

In the file you are going to define which materials have to go in these slots, if you don't specify a material the plugin will default it to nothing (AIR). You can find a list of valid materials and the way to write them down here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html Write down Ingredients just like I did here, under the recipe name.

Ingredients under name

The materials can be defined like this:

Define ingredients

Materials E, F, G, H, and I will now default to AIR as they are not defined. But you can ofcourse define them like you want.

To add advanced items like potions or enchanted books look here: Adding advanced items

After you defined the materials you want the recipe to use, you can define the amount of each item needed for the recipe. For this we are gonna make a new list under Ingredients called Amounts. Exactly as I typed it here. This list is going to contain the amount for every item, ALSO the ones you didn't specify! It will look like this:

Define amounts

As you can see materials E through I are all set to 0. Not doing this will cause the plugin to give an error. Make sure that if you used the same material multiple times, for example grass in every corner, the amount for all items that are the same is also the same. Otherwise the plugin won't handle it correctly.

That's it! You now have to reload your server to make sure the changes show up. To change other recipes just copy it and paste it below the first one.

Result