Ingredients

Ingredients are used for crafting in vanilla minecraft. Tetra adds two types of ingredients that can be used in modpacks or addons.

Tool action ingredient

Allows tetra items (or others) to be used as recipe ingredients based on which tool actions they provide. Tetra items take one point of durability damage when used in a crafting recipe, and stop providing their tool actions when broken.

Example

This recipe allows oak logs to be converted into planks at an increased rate when an axe of at least iron tier is used in the recipe.

{
  "type": "minecraft:crafting_shapeless",
  "ingredients": [
    {
      "tag": "minecraft:oak_logs"
    },
    {
      "type": "tetra:tool_action",
      "tool": "axe_dig",
      "tier": {
        "min": "minecraft:iron"
      }
    }
  ],
  "result": {
    "item": "minecraft:oak_planks",
    "count": 6
  }
}

Format

The tool action ingredient has two fields.

tool

A string value representing the tool action that's required of an item to be able to pass as this ingredient. Example: "pickaxe_dig"

tier optional

An object containing a min and/or max field. The values for min and max can either be an integer value or a string representation of a tool tier. A number can be used in place of the object, this acts as if both min and max was set to that value. Example:

{ "min": "minecraft:iron", "max": "minecraft:netherite" }

Scroll ingredient

The scroll ingredient is used by tetra for combining gild scrolls into higher tier gild scrolls. This ingredient probably has limited use outside of that. Type identifier: tetra:scroll

Example

Example recipe using scroll ingredients. The "type" and "key" fields are important for determining a match while the other fields determine how the ingredient would look like in JEI/NEI.

{
  "type": "minecraft:crafting_shapeless",
  "ingredients": [
    {
      "type": "tetra:scroll",
      "key": "hone/gild_1",
      "schematics": [""],
      "intricate": true,
      "material": 2,
      "ribbon": "c9ae69"
    },
    {
      "type": "tetra:scroll",
      "key": "hone/gild_1",
      "schematics": [""],
      "intricate": true,
      "material": 2,
      "ribbon": "c9ae69"
    }
  ],
  "result": {
    "item": "tetra:scroll_rolled",
    "count": 1,
    "nbt": {
      "BlockEntityTag": {
        "data": [
          {
            "key": "hone/gild_2",
            "schematics": ["tetra:hone/gild_1", "tetra:hone/gild_2"],
            "intricate": true,
            "material": 2,
            "ribbon": "d4b057",
            "glyphs": [15, 14, 13, 15]
          }
        ]
      }
    }
  }
}