CraftTweaker: Smeltery - An-Sar/PrimalCore GitHub Wiki

Smelter Recipes require at the very least one input item, fuel is assumed to be included as one of the input ingredients, there logic here is that smelting different ore types etc the specific fuel (ie: charcoal/carbon) is itself an important ingredient. This seems to make sense in the context of metallic ores, but also allows a certain flexibility in the case of custom recipes.

The input and output items are passed as arrays and should be encased within [], only four input and two output entries will be uses, overrsized arrays should just ignore the extra items.

Cook Time is the number of block updates that the recipe will take to complete, the actual game time will be influenced by the SMELTER_TICK_RATE config value which in turn determines how many ticks between updates

mods.primal.Smelter.addRecipe(
    String recipe_name, 
    int cook_time, 
    IIngredient[] item_inputs, 
    IItemStack[] item_outputs
);

mods.primal.Smelter.addRecipe("unique_recipes_name", 20, [<minecraft:dirt>], [<ore:diamond>]);

Removing Recipes, currently this is done through the recipe name, it should be full form modid:recipe_name


mods.primal.Smelter.removeAll()

mods.primal.Smelter.removeRecipe(String recipe_name);

Existing Recipe Names can be printed to the chat/console through an in-game command


/primal recipes smelter