Skip to content

Campfire CraftTweaker Functions

thedarkcolour edited this page Mar 28, 2022 · 5 revisions

Adding a recipe

Add a recipe that can be cooked on the campfire.

// mods.futuremc.Campfire.addRecipe(IIngredient input, IItemStack output, int duration);
mods.futuremc.Campfire.addRecipe(<minecraft:cobblestone>, <minecraft:stone>, 1200); // Adds cobblestone -> stone recipe that takes 60 seconds to complete.

Removing a recipe

Removes a recipe for the given input.

// mods.futuremc.Campfire.removeRecipe(IItemStack stack);
mods.futuremc.Campfire.removeRecipe(<minecraft:beef>); // Removes beef from being cooked on the campfire

Clearing default recipes

Call this before you add your recipes to remove all the default recipes.

mods.futuremc.Campfire.clearRecipes();