Adding advanced items - Loikas/MinecraftPlugins GitHub Wiki
Its not very difficult to add advanced items to your recipe and only takes a few steps. However you can only change the top center item into an custom item. That is the only way the plugin accepts it at the moment. Because of that it is not possible to add both an enchanted book and an potion in the same recipe.
For the ease of this tutorial I will be using the same recipes as in the creating custom recipes tutorial.
Enchanted book
Adding a custom enchanted book is very easy but needs to be done correctly for it to work properly. To start off I will change the B ingredient to an ENCHANTED_BOOK as this is the only place where we can put one, and I will change the amount to 1.

After that with the same indentation as Amounts and Ingredients we will add a new line called Advanced With two parameters called enchantment and level. This will look like this:

I suppose the level is pretty obvious but make sure to not make it a higher level than the max level you can obtain. For the enchantment you can choose between a custom enchantment or a vanilla enchant. If you want to add a vanilla enchantment you can look up the name you will have to fill in using the in-game command /enchant @p something There you will get all options and how you have to name them. Make sure too add the minecraft:enchantmentname part.
If you want to add a custom enchantment you can choose from the following list: But make sure to also add the minecraft: with every enchantment. minecraft:ee_assassin, minecraft:ee_unbreakable, minecraft:ee_direct, minecraft:ee_autosmelt, minecraft:ee_antigravity, minecraft:ee_beheading, minecraft:ee_expboost, minecraft:ee_lavawalker, minecraft:ee_traveler, minecraft:ee_healthboost, minecraft:ee_stonefists, minecraft:ee_leaping, minecraft:ee_owleyes, minecraft:ee_heavenslightness, minecraft:ee_thermalplating, minecraft:ee_lifesteal, minecraft:ee_icy, minecraft:ee_deflect, minecraft:ee_lumberjack, minecraft:ee_veinmine, minecraft:ee_wide, minecraft:ee_feedingmodule, minecraft:ee_stepping, minecraft:ee_gourmand, minecraft:ee_shadowstep, minecraft:ee_soulbound, minecraft:ee_splitting, minecraft:ee_replanting, minecraft:ee_elemental, minecraft:ee_disarming or minecraft:ee_disruption
In the end it should look something like this:

Potion
Adding potions is almost the same as adding enchanted books. But now we will instead of changing B into an enchanted book we will change it into POTION. This can also be SPLASH_POTION or LINGERING_POTION depending on the type you want. And again we will change the amount to 1.
After this we will add the same Advanced line but instead of adding Enchantment and Level we will add the following four things: Potion, Extended, Upgraded and Type with the same capitalization as I did. This will look as follows:

For potion you can fill in any potion minecraft allows with the name you can find here.
For upgraded and extended you both have to fill in true or false depending on if you want the potion to have a longer duration or higher level. Make sure that the relevant potion actually exists before filling stuff in as it won't work if you do it wrong.
For type you have to fill in either NORMAL, SPLASH or LINGERING depending on what you filled in at B. These two have to be the same type otherwise the recipe in the recipe menu will be different to the actual recipe to craft it.
For this example we will created a potion of weakness which is called WEAKNESS with a duration 4 minutes. Because weakness has no level 2 Upgraded will be false. Extended will be true because we want it to be 4 minutes instead of 1:30. For Type we will fill in NORMAL because at B we put down Potion. You will end up with this result:

And thats all there is to it! Have fun with your new recipes.