Recipes
Shapeless crafting
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");
Last updated