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.
powerCostThe amount of power required to craft this recipe.
powerRateThe 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 powerCost / powerRate.

Example File

{
  "type": "extendedcrafting:combination",
  "powerCost": 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": {
    "item": "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

As of version 6.0.3, CraftTweaker integration now supports Recipe Managers! Access all applicable methods using <recipetype:extendedcrafting:combination>!

Adding A Recipe

mods.extendedcrafting.CombinationCrafting.addRecipe(name, <output>, powerCost, [inputs]);
mods.extendedcrafting.CombinationCrafting.addRecipe(name, <output>, powerCost, [inputs], powerRate);
FieldRequiredDescription
nameA unique name for this recipe. Must be all lower case and have no spaces.
outputThe output item for this recipe.
powerCostThe amount of FE required to craft this recipe.
inputsAn array of 1-49 items. The first item is the item that goes on the Crafting Core, and the rest go on the pedestals.
powerRateThe 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.

Example

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

Removing Recipes

mods.extendedcrafting.CombinationCrafting.remove(<output>);
FieldRequiredDescription
outputThe item to remove all recipes for.