//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 predundant 16.05.2022 (EU date format) (Reformatted and added Hal's and Lithium seeds).


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


onEvent('recipes', event=>{

/*
	//Recipe format for reference
    event.recipes.mysticalagriculture.infusion({
      input: { item: middle },
      ingredients: [
        { item: item1 },
        { item: item2 },
        { item: item3 },
        { item: item4 },
        { item: item5 },
        { item: item6 },
        { item: item7 },
        { item: item8 }
      ],
      result: { item: output }
    })
*/
	//Add Rubber seed recipe
    event.recipes.mysticalagriculture.infusion({
      input: { item: 'mysticalagriculture:prosperity_seed_base' },
      ingredients: [
        { item: 'thermal:rubber' },
        { item: 'mysticalagriculture:prudentium_essence' },
        { item: 'thermal:rubber' },
        { item: 'mysticalagriculture:prudentium_essence' },
        { item: 'thermal:rubber' },
        { item: 'mysticalagriculture:prudentium_essence' },
        { item: 'thermal:rubber' },
        { item: 'mysticalagriculture:prudentium_essence' }
      ],
      result: { item: 'mysticalagriculture:rubber_seeds' }
    })

	
	//Add Lithium seed recipe
    event.recipes.mysticalagriculture.infusion({
      input: { item: 'mysticalagriculture:prosperity_seed_base' },
      ingredients: [
        { item: 'mekanism:dust_lithium' },
        { item: 'mysticalagriculture:supremium_essence' },
        { item: 'mekanism:dust_lithium' },
        { item: 'mysticalagriculture:supremium_essence' },
        { item: 'mekanism:dust_lithium' },
        { item: 'mysticalagriculture:supremium_essence' },
        { item: 'mekanism:dust_lithium' },
        { item: 'mysticalagriculture:supremium_essence' }
      ],
      result: { item: 'mysticalagriculture:lithium_seeds' }
    })


})