// priority: 2

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

//console.info('Loading custom Botany Pot recipes')

onEvent('recipes', event => {
	
	//Soils
	
	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "byg:blue_sand"
		},
		"display": {
			"block": "byg:blue_sand"
		},
		"categories": [
			"sand",
			"red_sand"
		],
    "growthModifier": 0
	})
	
	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "byg:purple_sand"
		},
		"display": {
			"block": "byg:purple_sand"
		},
		"categories": [
			"sand",
			"red_sand"
		],
    "growthModifier": 0
	})
	
	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "byg:pink_sand"
		},
		"display": {
			"block": "byg:pink_sand"
		},
		"categories": [
			"sand",
			"red_sand"
		],
    "growthModifier": 0
	})
	
	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "byg:black_sand"
		},
		"display": {
			"block": "byg:black_sand"
		},
		"categories": [
			"sand",
			"red_sand"
		],
    "growthModifier": 0
	})
	
	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "byg:white_sand"
		},
		"display": {
			"block": "byg:white_sand"
		},
		"categories": [
			"sand",
			"red_sand"
		],
    "growthModifier": 0
	})
	
	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "byg:end_sand"
		},
		"display": {
			"block": "byg:end_sand"
		},
		"categories": [
			"sand",
			"end_sand"
		],
    "growthModifier": 0
	})
	
	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "minecraft:end_stone"
		},
		"display": {
			"block": "minecraft:end_stone"
		},
		"categories": [
			"betterendstone"
		],
    "growthModifier": -0.5
	})
	
	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "byg:ivis_phylium"
		},
		"display": {
			"block": "byg:ivis_phylium"
		},
		"categories": [
			"betterendstone"
		],
    "growthModifier": -0.35
	})
	
	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "byg:nightshade_phylium"
		},
		"display": {
			"block": "byg:nightshade_phylium"
		},
		"categories": [
			"betterendstone",
			"nightshade_phylium"
		],
    "growthModifier": -0.45
	})
	
	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "byg:shulkren_phylium"
		},
		"display": {
			"block": "byg:shulkren_phylium"
		},
		"categories": [
			"betterendstone",
			"shulkren_phylium"
		],
    "growthModifier": -0.45
	})
	
	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "byg:imparius_phylium"
		},
		"display": {
			"block": "byg:imparius_phylium"
		},
		"categories": [
			"betterendstone",
			"imparius_phylium"
		],
    "growthModifier": -0.45
	})
	
	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "byg:bulbis_phycelium"
		},
		"display": {
			"block": "byg:bulbis_phycelium"
		},
		"categories": [
			"betterendstone",
			"bulbis_phycelium"
		],
    "growthModifier": -0.45
	})
	
	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "byg:ether_phylium"
		},
		"display": {
			"block": "byg:ether_phylium"
		},
		"categories": [
			"ether_phylium",
			"ether_soil"
		],
    "growthModifier": 0.1
	})
	
	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "byg:ether_soil"
		},
		"display": {
			"block": "byg:ether_soil"
		},
		"categories": [
			"ether_phylium",
			"ether_soil"
		],
    "growthModifier": -0.1
	})

	event.custom({
		"type": "botanypots:soil",
		"input": {
			"item": "byg:overgrown_crimson_blackstone"
		},
		"display": {
			"block": "byg:overgrown_crimson_blackstone"
		},
		"categories": [
			"dirt",
			"crimson_nylium",
			"mushroom"
		],
    "growthModifier": 0
	})
	
	//Custom Botany Pot Crops
	
	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "silentgear:flax_seeds"
		},
		"categories": [
			"dirt"
		],
		"growthTicks": 1000,
		"display": {
			"block": "silentgear:flax_plant",
			"properties": {
				"age": 7
			}
		},
		"results": [
			{
				"chance": 0.9,
				"output": {
					"item": "silentgear:flax_fiber"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.25,
				"output": {
					"item": "silentgear:flax_fiber"
				},
				"minRolls": 1,
				"maxRolls": 2
			},
			{
				"chance": 0.05,
				"output": {
					"item": "silentgear:flax_seeds"
				},
				"minRolls": 1,
				"maxRolls": 2
			}
		]
	})
	
	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "silentgear:fluffy_seeds"
		},
		"categories": [
			"dirt"
		],
		"growthTicks": 1000,
		"display": {
			"block": "silentgear:fluffy_plant",
			"properties": {
				"age": 7
			}
		},
		"results": [
			{
				"chance": 0.9,
				"output": {
					"item": "silentgear:fluffy_puff"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.25,
				"output": {
					"item": "silentgear:fluffy_puff"
				},
				"minRolls": 1,
				"maxRolls": 2
			},
			{
				"chance": 0.05,
				"output": {
					"item": "silentgear:fluffy_seeds"
				},
				"minRolls": 1,
				"maxRolls": 2
			}
		]
	})
	
	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "minecraft:chorus_flower"
		},
		"categories": [
			"betterendstone"
		],
		"growthTicks": 2400,
		"display": {
			"block": "minecraft:chorus_flower"
		},
		"results": [
			{
				"chance": 1,
				"output": {
					"item": "minecraft:chorus_fruit"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.05,
				"output": {
					"item": "minecraft:chorus_flower"
				},
				"minRolls": 1,
				"maxRolls": 1
			}
		]
	})
	
	//Added a couple more botany pot recipes for BYG plants
	
	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "byg:nightshade_sapling"
		},
		"categories": [
			"nightshade_phylium"
		],
		"growthTicks": 1200,
		"display": {
			"block": "byg:nightshade_sapling"
		},
		"results": [
			{
				"chance": 0.5,
				"output": {
					"item": "byg:nightshade_log"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.1,
				"output": {
					"item": "minecraft:stick"
				},
				"minRolls": 1,
				"maxRolls": 2
			},
			{
				"chance": 0.05,
				"output": {
					"item": "byg:nightshade_sapling"
				},
				"minRolls": 1,
				"maxRolls": 1
			}
		]
	})
	
	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "byg:nightshade_berries"
		},
		"categories": [
			"nightshade_phylium"
		],
		"growthTicks": 600,
		"display": {
			"block": "byg:nightshade_berry_bush",
			"properties": {
				"age": 3
			}
		},
		"results": [
			{
				"chance": 0.9,
				"output": {
					"item": "byg:nightshade_berries"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.05,
				"output": {
					"item": "byg:nightshade_berries"
				},
				"minRolls": 1,
				"maxRolls": 2
			}
		]
	})
	
	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "byg:crimson_berries"
		},
		"categories": [
			"crimson_nylium"
		],
		"growthTicks": 800,
		"display": {
			"block": "byg:nightshade_berry_bush",
			"properties": {
				"age": 3
			}
		},
		"results": [
			{
				"chance": 0.9,
				"output": {
					"item": "byg:crimson_berries"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.05,
				"output": {
					"item": "byg:crimson_berries"
				},
				"minRolls": 1,
				"maxRolls": 2
			}
		]
	})
	
	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "byg:bulbis_oddity"
		},
		"categories": [
			"bulbis_phycelium"
		],
		"growthTicks": 1200,
		"display": {
			"block": "byg:bulbis_oddity"
		},
		"results": [
			{
				"chance": 0.5,
				"output": {
					"item": "byg:bulbis_stem"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.1,
				"output": {
					"item": "byg:bulbis_shell"
				},
				"minRolls": 1,
				"maxRolls": 2
			},
			{
				"chance": 0.05,
				"output": {
					"item": "byg:bulbis_oddity"
				},
				"minRolls": 1,
				"maxRolls": 1
			}
		]
	})
	
	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "byg:bulbis_anomaly"
		},
		"categories": [
			"bulbis_phycelium"
		],
		"growthTicks": 1800,
		"display": {
			"block": "byg:bulbis_anomaly"
		},
		"results": [
			{
				"chance": 0.9,
				"output": {
					"item": "byg:bulbis_anomaly"
				},
				"minRolls": 1,
				"maxRolls": 1
			}
		]
	})
	
	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "byg:purple_bulbis_oddity"
		},
		"categories": [
			"bulbis_phycelium"
		],
		"growthTicks": 1200,
		"display": {
			"block": "byg:purple_bulbis_oddity"
		},
		"results": [
			{
				"chance": 0.5,
				"output": {
					"item": "byg:bulbis_stem"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.1,
				"output": {
					"item": "byg:purple_bulbis_shell"
				},
				"minRolls": 1,
				"maxRolls": 2
			},
			{
				"chance": 0.05,
				"output": {
					"item": "byg:purple_bulbis_oddity"
				},
				"minRolls": 1,
				"maxRolls": 1
			}
		]
	})
	
	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "byg:purple_bulbis_anomaly"
		},
		"categories": [
			"bulbis_phycelium"
		],
		"growthTicks": 1800,
		"display": {
			"block": "byg:purple_bulbis_anomaly"
		},
		"results": [
			{
				"chance": 0.9,
				"output": {
					"item": "byg:purple_bulbis_anomaly"
				},
				"minRolls": 1,
				"maxRolls": 1
			}
		]
	})
	
	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "byg:shulkren_fungus"
		},
		"categories": [
			"shulkren_phylium"
		],
		"growthTicks": 1200,
		"display": {
			"block": "byg:shulkren_fungus"
		},
		"results": [
			{
				"chance": 0.75,
				"output": {
					"item": "byg:shulkren_fungus"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.15,
				"output": {
					"item": "byg:shulkren_wart_block"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.15,
				"output": {
					"item": "byg:white_mushroom_stem"
				},
				"minRolls": 1,
				"maxRolls": 1
			}
		]
	})
	
	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "byg:ether_sapling"
		},
		"categories": [
			"ether_soil"
		],
		"growthTicks": 2400,
		"display": {
			"block": "byg:ether_sapling"
		},
		"results": [
			{
				"chance": 0.5,
				"output": {
					"item": "byg:ether_log"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.1,
				"output": {
					"item": "minecraft:stick"
				},
				"minRolls": 1,
				"maxRolls": 2
			},
			{
				"chance": 0.05,
				"output": {
					"item": "byg:ether_sapling"
				},
				"minRolls": 1,
				"maxRolls": 1
			}
		]
	})

	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "byg:imparius_mushroom"
		},
		"categories": [
			"imparius_phylium"
		],
		"growthTicks": 1200,
		"display": {
			"block": "byg:imparius_mushroom"
		},
		"results": [
			{
				"chance": 0.75,
				"output": {
					"item": "byg:imparius_mushroom"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.15,
				"output": {
					"item": "byg:imparius_stem"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.15,
				"output": {
					"item": "byg:imparius_mushroom_block"
				},
				"minRolls": 1,
				"maxRolls": 1
			}
		]
	})

	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "byg:fungal_imparius"
		},
		"categories": [
			"imparius_phylium"
		],
		"growthTicks": 1200,
		"display": {
			"block": "byg:fungal_imparius"
		},
		"results": [
			{
				"chance": 0.75,
				"output": {
					"item": "byg:fungal_imparius"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.15,
				"output": {
					"item": "byg:fungal_imparius_stem"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.15,
				"output": {
					"item": "byg:fungal_imparius_block"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.015,
				"output": {
					"item": "byg:fungal_imparius_filament_block"
				},
				"minRolls": 1,
				"maxRolls": 1
			}
		]
	})

	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "byg:oddity_cactus"
		},
		"categories": [
			"end_sand"
		],
		"growthTicks": 1600,
		"display": {
			"block": "byg:oddity_cactus"
		},
		"results": [
			{
				"chance": 0.75,
				"output": {
					"item": "byg:oddity_cactus"
				},
				"minRolls": 1,
				"maxRolls": 1
			}
		]
	})
	
	event.custom({
		"type": "botanypots:crop",
		"seed": {
			"item": "byg:sythian_fungus"
		},
		"categories": [
			"sythian_nylium"
		],
		"growthTicks": 1600,
		"display": {
			"block": "byg:sythian_fungus"
		},
		"results": [
			{
				"chance": 0.75,
				"output": {
					"item": "byg:sythian_fungus"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.15,
				"output": {
					"item": "byg:sythian_wart_block"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.15,
				"output": {
					"item": "byg:sythian_stem"
				},
				"minRolls": 1,
				"maxRolls": 1
			},
			{
				"chance": 0.15,
				"output": {
					"item": "minecraft:shroomlight"
				},
				"minRolls": 1,
				"maxRolls": 1
			}
		]
	})

	
})