#priority 10
####################################################################################################
#                                                                                                  #
####################################################################################################
# Authors: ValkyrieofNight                                                                         #
####################################################################################################
#### VARS           ####
#### ORE DICT       ####
#### REMOVE RECIPES ####
#### REM LOOT TABLE ####
#### CHANGE RECIPES ####
#### ADD RECIPES    ####




#Vars:
global testVar1 = <ore:ingotIron>;
static testVar2 = <ore:ingotGold>;
var testVar3 = <ore:ingotIron>;
#Remove Recipe
_rrh(<>);
#Add Shaped Recipe:
recipes.addShaped(<> * 1, [
	[<>,<>,<>],
 	[<>,<>,<>],
	[<>,<>,<>]
]);
_rr(<>);
recipes.addShaped(<> * 1, [
	[,,],
 	[,,],
	[,,]
]);

recipes.addShapeless(<>, [<>]);


function ar3x3(
	output as IItemStack,
	inputLine1 as IIngredient[3], 
	inputLine2 as IIngredient[3], 
	inputLine3 as IIngredient[3]){
	recipes.addShaped(output, [
		[inputLine1[0], inputLine1[1], inputLine1[2]],
		[inputLine2[0], inputLine2[1], inputLine2[2]],
		[inputLine3[0], inputLine3[1], inputLine3[2]]
	]);
}

function ar3x3(
	name as String,
	output as IItemStack,
	inputLine1 as IIngredient[3], 
	inputLine2 as IIngredient[3], 
	inputLine3 as IIngredient[3],
	recipeFunction as IRecipeFunction,
	recipeAction as IRecipeAction
	){
	recipes.addShaped(output, [
		[inputLine1[0], inputLine1[1], inputLine1[2]],
		[inputLine2[0], inputLine2[1], inputLine2[2]],
		[inputLine3[0], inputLine3[1], inputLine3[2]]
	]);
}

function replaceShaped(
	name as String,
	output as IItemStack,
	inputLine1 as IIngredient[3], 
	inputLine2 as IIngredient[3], 
	inputLine3 as IIngredient[3], 
	[IRecipeFunction function], 
	[IRecipeAction action]){
	rr(output);
	recipes.addShaped(output, [
		[inputLine1[0], inputLine1[1], inputLine1[2]],
		[inputLine2[0], inputLine2[1], inputLine2[2]],
		[inputLine3[0], inputLine3[1], inputLine3[2]]
	]);
}


function ar2x2(
	output as IItemStack,
	inputLine1 as IIngredient[2], 
	inputLine2 as IIngredient[2]){
	recipes.addShaped(output, [
		[inputLine1[0], inputLine1[1]],
		[inputLine2[0], inputLine2[1]]
	]);
}