//# PVJ's Fallen Leaves Recipes import crafttweaker.item.IIngredient; import crafttweaker.item.IItemStack; var leafCarpet = [ //[input,output] [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], ] as IItemStack[][]; var input = leafCarpet[0][0]; var output = leafCarpet[0][1]; var recipieName = "leaf_carpet_" as string; for i, recipe in leafCarpet { recipieName = "leaf_carpet_" + i as string; input = leafCarpet[i][0]; output = leafCarpet[i][1]; recipes.addShaped(recipieName, output * 3, [[input, input]]); }