Recipes
Last updated
Last updated
As with models and tags, recipes also have subtypes, for now digitality only supports shapeless crafting recipes, but we are aiming to expand the support in the future.
data.shapelessRecipe("<recipe id>", new ItemTemplate("<item name>", "<item count (optional)>"), <ArrayList of ingredient names/ingredient 1>, "<ingredient 2>"...);
// This code registers the "funnymod:test" recipe that produces 2 sticks and uses a diamond block and a golden carrot as the ingredients
VirtualDataPack data = new VirtualDataPack("funnymod");
data.shapelessRecipe("test", new ItemTemplate("minecraft:stick", 2), "minecraft:diamond_block", "minecraft:golden_carrot");