Ender Recipes

Extended Crafting allows you easily add your own Ender 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 an Ender Crafting recipe. Syntax can be inferred from the example jsons below.

Shaped

FieldRequiredDescription
typeThe recipe type must be extendedcrafting:shaped_ender_crafter.
craftingTimeThe amount of time (in seconds) this recipe should take.
patternThe recipe pattern.
keyThe recipe key, for specifying which item each character represents.
resultThe item that this recipe will output once finished

Shapeless

FieldRequiredDescription
typeThe recipe type must be extendedcrafting:shapeless_ender_crafter.
craftingTimeThe amount of time (in seconds) this recipe should take.
ingredientsAn array of 1-9 input items.
resultThe item that this recipe will output once finished.

Note: craftingTime refers to the amount of time in seconds that the recipe should take with a single alternator. Adding more alternators will make the crafting operation faster.

Example Files

Shaped

{
  "type": "extendedcrafting:shaped_ender_crafter",
  "pattern": [
    "XXX",
    "X X",
    "XXX"
  ],
  "key": {
    "X": {
      "tag": "forge:ingots/gold"
    }
  },
  "result": {
    "item": "minecraft:apple"
  }
}

Shapeless

{
  "type": "extendedcrafting:shapeless_ender_crafter",
  "ingredients": [
    {
      "item": "minecraft:coal"
    },
    {
      "item": "minecraft:coal"
    }
  ],
  "result": {
    "item": "minecraft:apple"
  }
}

CraftTweaker

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

Recipe Manager Support

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

Adding A Shaped Recipe

mods.extendedcrafting.EnderCrafting.addShaped(name, <output>, [[<>, <>, <>], [<>, <>, <>], [<>, <>, <>]], seconds);
FieldRequiredDescription
nameA unique name for this recipe. Must be all lower case and have no spaces.
outputThe output item for this recipe.
<>An input ingredient for the slot shown.
secondsThe amount of seconds this recipe should take. If this parameter isn't added, it will use the default rate defined in the config file.

The input arrays work in the same way as the normal crafting recipes, check out the CraftTweaker wiki for more information.

Example

mods.extendedcrafting.EnderCrafting.addShaped("test_shaped", <item:minecraft:stick>, [
  [<tag:items:forge:ingots/iron>, <item:minecraft:air>, <item:minecraft:air>], 
  [<tag:items:forge:ingots/gold>, <tag:items:forge:ingots/gold>, <item:minecraft:air>], 
  [<tag:items:forge:ingots/gold>, <item:minecraft:air>, <item:minecraft:air>]
], 500);

Adding A Shapeless Recipe

mods.extendedcrafting.EnderCrafting.addShapeless(name, <output>, [inputs], seconds);
FieldRequiredDescription
nameA unique name for this recipe. Must be all lower case and have no spaces.
outputThe output item for this recipe.
inputsAn array of 1-9 items required to make the recipe.
secondsThe amount of seconds this recipe should take. If this parameter isn't added, it will use the default rate defined in the config file.

Example

mods.extendedcrafting.EnderCrafting.addShapeless("test_shapeless", <item:minecraft:cobblestone>, [
  <tag:items:forge:gems/diamond>, <tag:items:forge:gems/diamond>, <tag:items:forge:gems/diamond>, <tag:items:forge:gems/diamond>, <tag:items:forge:gems/diamond>, <tag:items:forge:gems/diamond>
], 30);

Removing Recipes

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