shapelessRecipe
fun shapelessRecipe( id: Identifier, group: String, result: ItemStack, vararg ingredients: IngredientLike): ShapelessRecipe
Content copied to clipboard
Create a new ShapelessRecipe with the given information. The group string is used for finding the recipe in the recipe book. The result is the resulting ItemStack of the recipe. The ingredients are any number of IngredientLike objects.
Example representing flint and steel:
shapelessRecipe(
Identifier("minecraft", "flint_and_steel"),
"", // group is defaulted to empty string
ItemStack(Item.FLINT_AND_STEEL, 1),
Items.IRON_INGOT,
Items.FLINT
)
Content copied to clipboard