//ABOE scripts | All Rights Reserved unless otherwise explicitly stated.
//
//Information.
//This adds new crafting recipes for Mystical Agriculture infusion altar for any missing seeds
//
// Credit to Quentin765 in the KubeJS Discord for the assistance tracking down the recipe format 
//
//Scripted by Peter.
//Last edited by Peter 14.04.2022 (EU date format) (Initial version)
//Last edited by <name> <date> (EU date format) (Changelog).


settings.logAddedRecipes = true
settings.logRemovedRecipes = true
settings.logSkippedRecipes = false
settings.logErroringRecipes = false


onEvent('recipes', event=>{

	event.custom({
	  "type": "mysticalagriculture:infusion",
	  "conditions": [
		{
		  "type": "mysticalagriculture:crop_enabled",
		  "crop": "mysticalagriculture:rubber"
		},
		{
		  "type": "mysticalagriculture:crop_has_material",
		  "crop": "mysticalagriculture:rubber"
		}
	  ],
	  "input": {
		"type": "mysticalagriculture:crop_component",
		"component": "seed",
		"crop": "mysticalagriculture:rubber"
	  },
	  "ingredients": [
		{
		  "item": "thermal:rubber",
		  "component": "material"
		},
		{
		  "type": "mysticalagriculture:crop_component",
		  "component": "essence",
		  "crop": "mysticalagriculture:rubber"
		},
		{
		  "item": "thermal:rubber",
		  "component": "material"
		},
		{
		  "type": "mysticalagriculture:crop_component",
		  "component": "essence",
		  "crop": "mysticalagriculture:rubber"
		},
		{
		  "item": "thermal:rubber",
		  "component": "material"
		},
		{
		  "type": "mysticalagriculture:crop_component",
		  "component": "essence",
		  "crop": "mysticalagriculture:rubber"
		},
		{
		  "item": "thermal:rubber",
		  "component": "material"
		},
		{
		  "type": "mysticalagriculture:crop_component",
		  "component": "essence",
		  "crop": "mysticalagriculture:rubber"
		}
	  ],
	  "result": {
		"item": "mysticalagriculture:rubber_seeds"
	  }
	})

})