Wiki 9Minecraft Tea Kettle Wiki
Tea Kettle WikiDocumentation › Custom Recipes

Custom Recipes

Tea Kettle adds a few new recipe types, so if you want to make use of those, here's a simple rundown of each type:

> tea_kettle:cup_drink

This is the type used for all the teas, as well as the Quick Latte recipes (the ones for making Lattes without water). These recipes are triggered by placing all the ingredients into an empty cup and then using the catalyst on it.

  • The result of the recipe must be the id of a BlockItem whose block has a facing blockstate. This way, the direction of the block will persist during the "brewing process".

Example: Bamboo tea recipe

{
  "type": "tea_kettle:cup_drink",
  "catalyst": {
    "tag": "tea_kettle:boiling_kettles"
  },
  "ingredients": [{ "item": "tea_kettle:bamboo_leaf" }],
  "result": "tea_kettle:bamboo_tea"
}

This recipe takes one ingredient, tea_kettle:bamboo_leaf, and uses the tag tea_kettle:boiling_kettles as the catalyst, which includes both Tea Kettle's kettles and Simply Tea's teapots with hot water by default.
The output of the recipe, tea_kettle:bamboo_tea, is a BlockItem which can be used to place down Bamboo Tea cups. That's what the mod uses to find what block to replace the cup with when the catalyst is used on it.

Example: Black latte (quick) recipe

{
  "type": "forge:conditional",
  "recipes": [
    {
      "conditions": [
        {
          "modid": "simplytea",
          "type": "forge:mod_loaded"
        }
      ],
      "recipe": {
        "type": "tea_kettle:cup_drink",
        "catalyst": {
          "tag": "tea_kettle:frothing_kettles"
        },
        "ingredients": [{"item": "minecraft:cocoa_beans"}, {"item":"minecraft:cocoa_beans"}],
        "result": "simplytea:cup_cocoa"
      }
    }
  ]
}

This recipe isn't as complex as it looks! The recipe itself is only what's inside the "recipe" value, the rest is simply there to prevent errors during loading in the case the mod it depends on (Simply Tea) isn't loaded.
You may notice that its catalyst has a different tag from the previous recipe: tea_kettle:frothing_kettles. This tag includes both Tea Kettle's kettles and Simply Tea's teapots with frothing milk by default.
Also, this recipe requires two ingredients, by simply adding the other one to the array. The output of the recipe, simplytea:cup_cocoa, is one of the special cases covered by the mod, where an item that isn't a BlockItem gains placement functionality. In most cases, however, you would create your own BlockItem and use that instead.

> tea_kettle:tea_mixing

This type is used for the Latte recipes, where a kettle with milk can be added onto a cup of tea (I've considered adding support for any item to be used as an addition, but this was never necessary for me)

These recipes are triggered by using a tea_kettle:frothing_kettles item on a cup that corresponds to its ingredient.

  • The result of the recipe must be the id of a BlockItem whose block has a facing blockstate. This way, the direction of the block will persist during the "brewing process".

Example: Oolong latte (quick) recipe

{
  "type": "tea_kettle:tea_mixing",
  "ingredient": { "item": "tea_kettle:oolong_tea" },
  "result": "tea_kettle:oolong_latte"
}

The ingredient of the recipe, tea_kettle:oolong_tea, determines which kind of tea the kettle must be used on, and the result specifies what block it should turn into afterwards.

> tea_kettle:shearing

This is a super simple recipe type that acts just like a shapeless recipe, but will take one durability away from any ingredients that are an instanceof ShearsItem, giving you the result as... well, the result.

Example: Rose Petal recipe

{
  "type": "tea_kettle:shearing",
  "ingredients": [{"item": "minecraft:rose_bush"}, {"item": "minecraft:shears"}],
  "result": {
    "item": "tea_kettle:rose_petal",
    "count": 2
  }
}

This recipe is pretty self-explanatory! You could use other shears items instead of minecraft:shears, or even use no shears at all. Since it's just a ShapelessRecipe, you could literally copy the flint and steel recipe and it'd still work, but why would you though...?