You are viewing the docs for an older version. View Latest Docs (26.1)

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
type✓The recipe type must be extendedcrafting:combination.
powerCost✓The amount of power required to craft this recipe.
powerRateThe amount of power consumed per tick. If omitted will default to the config value.
input✓The item that will be placed on the Crafting Core.
ingredients✓An array of 1-48 items that will be placed on the Pedestals.
result✓The 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.

Adding A Recipe

mods.extendedcrafting.CombinationCrafting.addRecipe(name, <output>, powerCost, [inputs]);
mods.extendedcrafting.CombinationCrafting.addRecipe(name, <output>, powerCost, [inputs], powerRate);
FieldRequiredDescription
name✓A unique name for this recipe. Must be all lower case and have no spaces.
output✓The output item for this recipe.
powerCost✓The amount of FE required to craft this recipe.
inputs✓An 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
output✓The item to remove all recipes for.