Arcane Workbench Recipe - KhanhPham05/AbyssTweaks GitHub Wiki

Arcane Workbench Recipe

This is the tutorial page for adding recipes for the Arcane Workbench

There are 4 ways you can define how your recipe and ingredients are placed.

Click here to see more inside the code

1. Full Circle Recipe

**Syntax ** : arcaneStation.addFullCircleRecipe(String recipeName, IItemStack output, IIngredient ingredient, IIngredient center);

This method will tell the game to generate a recipe that define the whole circle of the workbench will have the same type of ingredient.

Example

The following line will add a recipe with name "diamond_full_test" that will return <item:minecraft:diamond> from iron ingot and dirt as center and surrounding ingredients respectively.

arcaneStation.addFullCircleRecipe("diamond_full_test", <item:minecraft:diamond>, <item:minecraft:dirt>, <tag:items:forge:ingots/iron>);

Lastly, save your script file and run /reload to apply the recipe. After that you will have a new recipe just like this image below

2. Two Ingredients Recipe

Syntax : arcaneStation.addTwoIngredientsRecipe(String recipeName, IItemStack output, Ingredient[] ingredients, IIngredient center, boolean mirror);.

Conditions :

  • array Ingredient[] ingredients can ONLY have 2 members. NO more, NO less.
  • Boolean parameter boolean mirror is optional, default is true

This method will do almost the same as Full Circle Recipe. However, it takes an array of 2 ingredients.

Example And Illustration

The following line will add a recipe with name "diamond_two_test" that will return <item:minecraft:diamond> from [dirt, stone] and [iron ingot] as center and surrounding ingredients respectively.

arcaneStation.addFullCircleRecipe("diamond_full_test", <item:minecraft:diamond>, [<item:minecraft:dirt>, <item:minecraft:stone>], <tag:items:forge:ingots/iron>);

Lastly, save your script file and run /reload to apply the recipe. After that you will have a new recipe just like this image below :

Important Note :

  • If boolean mirror variable is true (by default) the game will create another recipe that swap places of these two surrounding ingredients, or, in short, mirrored with the same name with "_mirrored" as suffix. Otherwise, if it will just create a single recipe.

3. Half-Half Recipe

Syntax & Condition : The syntax and conditions are the same as Two Ingredient Recipe. Except, the name of the method is: arcaneStation.addHalfHalfRecipe(...);

Example And Illustration

Saying that we are writing the same code line as above. But the name is "diamond_haft_haft_test"

Save your script file and run /reload to apply the recipe. After that you will have a new recipe just like this image below :

4. Regular Recipe

Syntax : arcaneStation.addRecipe(String recipeName, IItemStack output, Ingredient[] ingredients, IIngredient center);

Condition : array Ingredient[] ingredients can ONLY have 8 members, which indicates 8 slots on the circle (not include the center).

Example And Illustration

In the ingredients array, the first ingredient will be placed at the slot above the center slot and every ingredient will be read follow clockwise till the 8th which is in the left of the first slot.