foodCookingRecipe

fun foodCookingRecipe(    baseId: Identifier,     group: String,     input: IngredientLike,     result: ItemStack,     experience: Float = 0.0f,     cookTime: Int = 200,     smokerCookTime: Int = cookTime / 2,     campfireCookTime: Int = cookTime * 3): Array<AbstractCookingRecipe>

A more general recipe builder creating three recipes for the primary ways of cooking. These three are returned in an array, in the order of:

  • SmeltingRecipe

  • SmokingRecipe

  • CampfireCookingRecipe

The baseId is a base identifier for the recipe, with smelting, smoking, and campfire appended to it to create the three recipe identifiers. The group string is used for finding the recipe in the recipe book. The input is the input ingredient of the recipe. The result is the resulting ItemStack of the recipe. The experience is the amount of experience gained when cooking the recipe.

The cook time parameters are calculated in a special way:

  • cookTime is the time in ticks it takes to cook the item in a furnace. It defaults to 200, Minecraft's default of 10 seconds.

  • smokerCookTime is the time in ticks it takes to cook the item in a smoker. It defaults to half the cookTime, rounded down.

  • campfireCookTime is the time in ticks it takes to cook the item in a campfire. It defaults to triple the cookTime.

Author

sschr15