Combination Recipes

Extended Crafting allows you easily add your own Combination Crafting recipes using both Datapacks and CraftTweaker.

Datapacks

Prerequisites
  • You can learn more about using vanilla datapacks here.
  • You can learn more about creating recipe JSON files here.

The Recipe File

This section will go over the values available to use in a Combination Crafting recipe. Syntax can be inferred from the example json below.

FieldRequiredDescription
typeThe recipe type must be extendedcrafting:combination.
power_costThe amount of power required to craft this recipe.
power_rateThe amount of power consumed per tick. If omitted will default to the config value.
inputThe item that will be placed on the Crafting Core.
ingredientsAn array of 1-48 items that will be placed on the Pedestals.
resultThe item that this recipe will output once finished.
Note

The amount of time (in ticks) a combination recipe takes to complete is power_cost / power_rate.

Example File

{
  "type": "extendedcrafting:combination",
  "power_cost": 400000,
  "input": {
    "item": "minecraft:iron_ingot"
  },
  "ingredients": [
    {
      "item": "minecraft:potato"
    },
    {
      "item": "minecraft:potato"
    },
    {
      "item": "minecraft:potato"
    },
    {
      "item": "minecraft:potato"
    },
    {
      "item": "minecraft:potato"
    },
    {
      "item": "minecraft:potato"
    },
    {
      "item": "minecraft:potato"
    },
    {
      "item": "minecraft:potato"
    }
  ],
  "result": {
    "id": "minecraft:stone"
  }
}

CraftTweaker

Extended Crafting comes with CraftTweaker support built-in. You can make use of CraftTweaker to easily manage Combination Crafting recipes.

Recipe Manager Support

CraftTweaker integration supports Recipe Managers! Access all applicable methods using <recipetype:extendedcrafting:combination>!

Adding A Recipe

<recipetype:extendedcrafting:combination>.addRecipe(name, <output>, <input>, [<inputs>], power_cost);
<recipetype:extendedcrafting:combination>.addRecipe(name, <output>, <input>, [<inputs>], power_cost, power_rate);
FieldRequiredDescription
nameA unique name for this recipe. Must be all lower case and have no spaces.
outputThe output item for this recipe.
inputThe input item. This is placed on the Crafting Core.
inputsAn array of 1-48 items. These items are placed on the pedestals.
power_costThe amount of FE required to craft this recipe.
power_rateThe rate the recipe should consume FE. powerCost / powerRate = the number of ticks required to craft the recipe. If this isn't defined it will use the default value defined in the config.
Note

The amount of time (in ticks) a combination recipe takes to complete is power_cost / power_rate.

Example

<recipetype:extendedcrafting:combination>.addRecipe("test", <item:minecraft:stick> * 10, <item:minecraft:diamond>, [<tag:item:c:ingots/iron>, <item:minecraft:stick>], 10000, 100);

Removing Recipes

<recipetype:extendedcrafting:combination>.remove(<output>);
FieldRequiredDescription
outputThe item to remove all recipes for.