Skip to content

Blast Furnace and Smoker CraftTweaker Functions

thedarkcolour edited this page Jul 7, 2019 · 14 revisions

Blast Furnace and Smoker

Modify the list of valid inputs for the blast furnace or smoker. These machines have different ZenClasses, but their functions are the same. Blast Furnace and Smoker rely on normal furnace recipes, these functions choose which of the normal recipes can be used in the Blast Furnace or Smoker. The DEFAULT RECIPES for the Blast Furnace are any recipes that use an item whose OreDictionary name is prefixed with "ore". DEFAULT RECIPES for the Smoker are any recipes that use an edible item as an input.

Allowing a recipe

Allows a recipe from the vanilla furnace to be used in the Smoker/BlastFurnace that has the specified IItemStack input.

// mods.minecraftfuture.Smoker.addValidItem(IItemStack item);
mods.minecraftfuture.Smoker.addValidItem(<minecraft:sand>); // Allows Glass to be crafted in the smoker.
// mods.minecraftfuture.BlastFurnace.addValidItem(IItemStack item);
mods.minecraftfuture.BlastFurnace.addValidItem(<minecraft:cobblestone>); // Allows Stone to be crafted in the blast furnace.

Disallowing a recipe

Prevents the Smoker/BlastFurnace from crafting one of its default recipes with the specified IItemStack input.

// mods.minecraftfuture.Smoker.addValidInput(IItemStack item);
mods.minecraftfuture.Smoker.addValidInput(<minecraft:beef>); // Prevents Steak from being cooked.
// mods.minecraftfuture.BlastFurnace.removeValidInput(IItemStack item);
mods.minecraftfuture.BlastFurnace.removeValidInput(<minecraft:diamond_ore>); // Prevents Diamonds from being smelted.