Toaster (Heating)
The Toaster is block that allows a player to heat/cook an item. It can cook up to two items at a time. The toaster will cook for the duration of the item with the maximum cook time, regardless if the other takes a shorter amount of time. The toaster requires electrical power and is activated by sneaking and interacting (right click).
Recipe Managerโ
<recipetype:refurbished_furniture:toaster_heating>
Custom Functionsโ
addRecipe(name, ingredient, result[, time])
โ
Adds a new heating recipe to the toaster
Paramater | Type | Required | Description |
---|---|---|---|
name | string | Yes | The name of the recipe, must be unique. |
ingredient | IIngredient | Yes | The ingredient to freeze |
result | IItemStack | Yes | The resulting item from heating the ingredient , can have an amount. |
time | int | No | The duration in ticks to heat the item. Default 200 |
Exampleโ
- ZenScript
- Datapack Equivelant
%gamedir%/scripts/example.zs
<recipetype:refurbished_furniture:toaster_heating>.addRecipe(
"heating/easy_diamonds",
<item:minecraft:apple>,
<item:minecraft:diamond> * 64,
350
);
(ZIP File) ๐กข /data/[namespace]/recipes/heating/easy_diamonds.json
{
"type": "refurbished_furniture:toaster_heating",
"ingredient": {
"item": "minecraft:apple"
},
"result": {
"item": "minecraft:diamond",
"count": 64
},
"time": 350
}
Learn Moreโ
See Recipe Managers on the CraftTweaker documentation for all inbuilt functions.