Combination Recipes

Extended Crafting allows you easily add your own Combination Crafting recipes. Here's how you do it.

Datapacks

Prerequisits

  • Extended Crafting uses the vanilla datapack system for recipe customization. (Learn More)
  • Recipes are added using json files, similar to vanilla recipes. (Learn More)

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.

  • type: The recipe type must be extendedcrafting:combination.
  • powerCost: The amount of power required to craft this recipe.
  • powerRate: (optional) The 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 allows you easily add your own Combination Crafting recipes using CraftTweaker. Here's how you do it.

Adding A Recipe

mods.extendedcrafting.CombinationCrafting.addRecipe(name, <output>, powerCost, [inputs]);
mods.extendedcrafting.CombinationCrafting.addRecipe(name, <output>, powerCost, [inputs], powerRate);
  • 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.
  • powerRate: (optional) The 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>);
  • output: The item to remove all recipes for.