addShapelessCraft

fun addShapelessCraft(result: ItemStack, ingredients: List<Any>, plugin: Plugin, name: String)

Registers shapeless recipe(s) producing result.

Each ingredient may be a Material, an ItemStack, a org.bukkit.Tag of materials, or a list of alternatives; the cartesian product of all alternatives is registered as separate recipes under name + index.

⚠️ The recipe count is the product of the sizes of every alternative-bearing ingredient (tags and lists), so combinations blow up fast — e.g. two Tags of 30 materials each yield 900 registered recipes. Keep alternative sets small, or match by Material/ItemStack directly, to avoid bloating the recipe registry.

Parameters

plugin

owner of the recipe keys

name

base recipe key (an index is appended per combination)

Throws

if an ingredient has an unsupported type

if a org.bukkit.Tag does not contain Material values