Furnace
CraftTweaker allows you to Add
and Remove
Furnace recipes and change the fuel value of items.
Recipes
Removal
There are 2 ways to remove Furnace recipes, being:
And
The first syntax is more flexible with the recipes that are removed and will remove all Furnace recipes that output the output
given.
The second syntax is more strict with the recipes that are removed and will remove all Furnace recipes that output the output
given and has an input of input
.
There also is a third way of removing furnace recipes, though this one will remove ALL furnace recipes registered in the game.
Addition
There are 2 commands for adding furnace recipes:
And
The first syntax will add a Furnace recipe that will give 0 xp on smelt.
The second syntax will add a Furnace recipe that will give xp
xp on smelt.
Fuel
Set
The command for setting fuel values is:
This will set the burn value of input
to burnTime
in ticks. Minecraft coal burns for 1600 ticks, 80 seconds, 8 items. 1 item in a minecraft furnace takes 200 ticks to complete.
Setting the burnTime
to 0
will stop the input
from being a fuel item.
Get
The command for retrieving an item’s fuel value is:
This will return the burn value as an Integer
Examples
Removal
This will remove all Furnace recipes that outputs <minecraft:glass>
.
This will remove all Furnace recipes <minecraft:quartz>
that use <minecraft:quartz_ore>
as an input.
Addition
This will add a Furnace recipe that will output a <minecraft:golden_apple>
when a <minecraft:apple>
is smelted.
This will add a Furnace recipe that will output a <minecraft:speckled_melon>
when a <minecraft:melon>
is smelted and will give the player 1500 xp points.
Fuel
This will set the Fuel value of <minecraft:rotten_flesh>
to 100
.
Other Functionality
Getting all registered Furnace Recipes
Returns a List<IFurnaceRecipe>
.
Get Smelting Result
Returns an IItemStack.