Home Migration Guide Getting Started With Scripts Commands Examples
Generic JSON Recipes
This page relates to Immersive Engineering, which has built-in support!

Immersive Engineering Coke Oven

The Coke Oven is a type of IRecipeManager and implements all the methods that are available to IRecipeManager’s, such as removeRecipe() and removeAll().

Methods

Add Recipe

The following script will add a recipe to the Coke Oven that, after 100 ticks, will output a Treated Stick and 1Mb of Creosote (Fluid) with an input of a Stick.

script.zs
// <recipetype:immersiveengineering:coke_oven>.addRecipe(string recipePath, IIngredient ingredient, int time, IItemStack output, @Optional(0) int creosoteProduced)
<recipetype:immersiveengineering:coke_oven>.addRecipe("burn_a_stick", <item:minecraft:stick>, 100, <item:immersiveengineering:stick_treated>, 1);

Remove Recipes

The following script will remove all recipes from the Coke Oven that output Coal Coke.

script.zs
// <recipetype:immersiveengineering:coke_oven>.removeRecipe(IItemStack fuel)
<recipetype:immersiveengineering:coke_oven>.removeRecipe(<item:immersiveengineering:coal_coke>);