-
Notifications
You must be signed in to change notification settings - Fork 31
Smithing Table Functions
#Smithing Table
Add recipes to the smithing table.
The import for 1.12 is
import mods.futuremc.SmithingTable;
The import for 1.15 is
import futuremc.crafttweaker.SmithingTable;
Adds a recipe to the smithing table. Paramters:
input: IItemStack - the type of item (id)
material: IItemStack the material and how much of it (id, metadata, quantity)
result: IItemStack the result item with NBT from input (id)
import mods.futuremc.SmithingTable;
SmithingTable.addRecipe(<minecraft:diamond_pickaxe>, <futuremc:netherite_ingot>, <futuremc:netherite_pickaxe>);
Adds a recipe to the smithing table. Parameters:
name: String - The name of the recipe to add (ex. "netherite_pickaxe_from_smithing")
result: IItemStack - The resulting upgrade of the input (ex. Netherite Pickaxe)
input: IIngredient - The item to be upgraded (ex. Diamond Pickaxe)
material: IIngredient - The material to upgrade the input with (ex. Netherite Ingot)
materialCost: int - The amount of material needed to ugprade the item (ex. 1)
import futuremc.crafttweaker.SmithingTable;
SmithingTable.addRecipe("netherite_pickaxe_from_smithing", <item:futuremc:netherite_pickaxe>, <item:minecraft:diamond_pickaxe>, <item:futuremc:netherite_ingot>, 1);
Remove a recipe
import mods.futuremc.SmithingTable;
SmithingTable.removeRecipe(<minecraft:diamond_pickaxe>, <futuremc:netherite_ingot>);
NOT IMPLEMENTED.
Call clearDefaults.
import mods.futuremc.SmithingTable;
SmithingTable.clearDefaults();
NOT IMPLEMENTED.