minetest.register_craft({
	output = "default:dirt 2",
	recipe = {
		{"bonemeal:mulch", "bonemeal:mulch", "bonemeal:mulch"},
		{"bonemeal:mulch", "bonemeal:bonemeal", "bonemeal:mulch"},
		{"bonemeal:mulch", "bonemeal:mulch", "bonemeal:mulch"},
	}
})

for k,v in ipairs{"green","pink","cyan","brown","orange"} do
	local d = "dye:"..v
	minetest.register_craft({
		output = "default:coral_"..v,
		recipe = {
			{d,d,d},
			{d, "bonemeal:bonemeal", d},
			{d,d,d}
		}
	})
end

minetest.register_craft({
	output = "default:dirt_with_grass",
	recipe = {
		{"default:grass_1"},
		{"default:dirt"}
	}
})
minetest.register_craft({
	output = "default:dirt_with_snow",
	recipe = {
		{"dye:white","bonemeal:bonemeal"},
		{"default:dirt_with_grass",""}
	}
})
minetest.register_craft({
	output = "default:dirt_with_dry_grass",
	recipe = {
		{"default:dry_grass_1"},
		{"default:dirt"}
	}
})
minetest.register_craft({
	output = "default:dry_dirt_with_dry_grass",
	recipe = {
		{"default:dry_grass_1"},
		{"default:dry_dirt"}
	}
})
minetest.register_craft({
	output = "default:dirt_with_coniferous_litter",
	recipe = {
		{"default:pine_needles","default:pine_needles","default:pine_needles"},
		{"default:pine_needles","default:dirt","default:pine_needles"},
		{"default:pine_needles","default:pine_needles","default:pine_needles"},
	}
})
minetest.register_craft({
	output = "default:dirt_with_rainforest_litter",
	recipe = {
		{"default:jungleleaves","default:jungleleaves","default:jungleleaves"},
		{"default:jungleleaves","default:dirt","default:jungleleaves"},
		{"default:jungleleaves","default:jungleleaves","default:jungleleaves"},
	}
})

minetest.register_craft({
	output = "default:permafrost",
	recipe = {
		{"default:ice"},
		{"default:dirt"}
	}
})
minetest.register_craft({
	output = "default:permafrost_with_stones",
	recipe = {
		{"group:stone"},
		{"default:permafrost"}
	}
})
minetest.register_craft({
	output = "default:permafrost_with_moss",
	recipe = {
		{"group:leaves"},
		{"default:permafrost"}
	}
})

minetest.register_craft({
	output = "default:pine_sapling",
	recipe = {
		{"default:sapling","default:sapling","default:sapling"},
		{"default:sapling","bonemeal:bonemeal","default:sapling"},
		{"default:sapling","dye:white","default:sapling"},
	}
})
minetest.register_craft({
	output = "default:aspen_sapling",
	recipe = {
		{"default:pine_sapling","default:pine_sapling","default:pine_sapling"},
		{"default:pine_sapling","bonemeal:bonemeal","default:pine_sapling"},
		{"default:pine_sapling","dye:white","default:pine_sapling"},
	}
})
minetest.register_craft({
	output = "default:acacia_sapling",
	recipe = {
		{"default:sapling","default:aspen_sapling","default:sapling"},
		{"default:aspen_sapling","bonemeal:bonemeal","default:aspen_sapling"},
		{"default:pine_sapling","dye:red","default:pine_sapling"},
	}
})
minetest.register_craft({
	output = "default:junglesapling",
	recipe = {
		{"default:pine_sapling","default:sapling","default:pine_sapling"},
		{"default:aspen_sapling","bonemeal:bonemeal","default:aspen_sapling"},
		{"default:acacia_sapling","dye:brown","default:acacia_sapling"},
	}
})
minetest.register_craft({
	output = "moretrees:rubber_tree_sapling",
	recipe = {
		{"default:sapling","default:sapling","default:sapling"},
		{"default:sapling","bonemeal:bonemeal","default:sapling"},
		{"mesecons_materials:glue","dye:white","mesecons_materials:glue"},
	}
})

minetest.register_craft({
	output = "default:bush_sapling",
	recipe = {
		{"default:sapling","default:sapling","default:sapling"},
		{"","bonemeal:bonemeal",""}
	}
})
minetest.register_craft({
	output = "default:acacia_bush_sapling",
	recipe = {
		{"default:acacia_sapling","default:acacia_sapling","default:acacia_sapling"},
		{"","bonemeal:bonemeal",""}
	}
})
minetest.register_craft({
	output = "default:pine_bush_sapling",
	recipe = {
		{"default:pine_sapling","default:pine_sapling","default:pine_sapling"},
		{"","bonemeal:bonemeal",""}
	}
})
minetest.register_craft({
	output = "default:blueberry_bush_sapling",
	recipe = {
		{"default:bush_sapling","default:apple","default:bush_sapling"},
		{"default:bush_sapling","bonemeal:bonemeal","default:bush_sapling"},
		{"default:bush_sapling","dye:violet","default:bush_sapling"}
	}
})

minetest.register_craft({
	output = "default:cactus",
	recipe = {
		{"default:acacia_bush_sapling","bonemeal:fertiliser","default:acacia_bush_sapling"},
		{"group:tree","group:tree","group:tree"}
	}
})

minetest.register_craft({
	output = "default:papyrus",
	recipe = {
		{"default:stick","dye:green","default:stick"},
		{"default:stick","bonemeal:bonemeal","default:stick"},
		{"default:stick","default:bush_sapling","default:stick"},
	}
})

minetest.register_craft({
	type = "cooking",
	output = "default:coal_lump",
	recipe = "group:tree",
})

minetest.register_craft({
	type = "cooking",
	output = "default:dry_dirt",
	recipe = "default:dirt",
})

minetest.register_craft({
	output = "default:desert_cobble",
	recipe = {
		{"default:dirt"},
		{"default:coral_skeleton"}
	}
})
minetest.register_craft({
	output = "default:desert_cobble 2",
	recipe = {
		{"default:desert_stone","bonemeal:bonemeal"}
	}
})

minetest.register_craft({
	output = "default:cobble",
	recipe = {
		{"dye:grey"},
		{"default:desert_cobble"}
	}
})
minetest.register_craft({
	output = "default:gravel",
	recipe = {
		{"bonemeal:bonemeal"},
		{"default:stone"}
	}
})
minetest.register_craft({
	output = "default:sand",
	recipe = {
		{"bonemeal:bonemeal"},
		{"default:gravel"}
	}
})
minetest.register_craft({
	output = "default:desert_sand",
	recipe = {
		{"bonemeal:bonemeal","bonemeal:bonemeal"},
		{"default:desert_stone",""}
	}
})
minetest.register_craft({
	output = "default:silver_sand",
	recipe = {
		{"dye:grey"},
		{"group:sand"},
	}
})
minetest.register_craft({
	output = "default:clay",
	recipe = {
		{"bonemeal:bonemeal"},
		{"default:dirt"}
	}
})

minetest.register_craft({
	output = "default:ice",
	recipe = {
		{"bonemeal:bonemeal"},
		{"default:snowblock"}
	}
})

minetest.register_craft({
	output = "bucket:bucket_water",
	recipe = {
		{"bonemeal:bonemeal","default:snowblock","bonemeal:bonemeal"},
		{"default:snowblock","bucket:bucket_empty","default:snowblock"},
		{"bonemeal:bonemeal","default:snowblock","bonemeal:bonemeal"}
	},
})
minetest.register_craft({
	output = "bucket:bucket_lava",
	recipe = {
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"default:stone","bucket:bucket_empty","default:stone"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"}
	},
})

minetest.register_craft({
	output = "default:stone_with_coal",
	recipe = {
		{"default:coal_lump"},
		{"default:stone"}
	}
})

minetest.register_craft({
	output = "default:stone_with_tin",
	recipe = {
		{"bonemeal:fertiliser","default:coalblock","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:coalblock","bonemeal:fertiliser"},
	}
})
minetest.register_craft({
	output = "default:stone_with_tin 2",
	recipe = {
		{"bonemeal:fertiliser","default:tin_lump","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","bonemeal:fertiliser","bonemeal:fertiliser"},
	}
})

minetest.register_craft({
	output = "default:stone_with_copper",
	recipe = {
		{"bonemeal:fertiliser","default:tinblock","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:tinblock","bonemeal:fertiliser"},
	}
})
minetest.register_craft({
	output = "default:stone_with_copper 2",
	recipe = {
		{"bonemeal:fertiliser","default:copper_lump","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","bonemeal:fertiliser","bonemeal:fertiliser"},
	}
})

minetest.register_craft({
	output = "default:stone_with_iron",
	recipe = {
		{"bonemeal:fertiliser","default:bronzeblock","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:bronzeblock","bonemeal:fertiliser"},
	}
})
minetest.register_craft({
	output = "default:stone_with_iron 2",
	recipe = {
		{"bonemeal:fertiliser","default:iron_lump","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","bonemeal:fertiliser","bonemeal:fertiliser"},
	}
})

minetest.register_craft({
	output = "default:stone_with_gold",
	recipe = {
		{"bonemeal:fertiliser","default:steelblock","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:steelblock","bonemeal:fertiliser"},
	}
})
minetest.register_craft({
	output = "default:stone_with_gold 2",
	recipe = {
		{"bonemeal:fertiliser","default:gold_lump","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","bonemeal:fertiliser","bonemeal:fertiliser"},
	}
})

minetest.register_craft({
	output = "default:stone_with_mese",
	recipe = {
		{"bonemeal:fertiliser","default:goldblock","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:goldblock","bonemeal:fertiliser"},
	}
})
minetest.register_craft({
	output = "default:stone_with_mese 2",
	recipe = {
		{"bonemeal:fertiliser","default:mese_crystal","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","bonemeal:fertiliser","bonemeal:fertiliser"},
	}
})

minetest.register_craft({
	output = "default:stone_with_diamond",
	recipe = {
		{"bonemeal:fertiliser","default:mese","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:mese","bonemeal:fertiliser"},
	}
})
minetest.register_craft({
	output = "default:stone_with_diamond 2",
	recipe = {
		{"bonemeal:fertiliser","default:diamond","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","bonemeal:fertiliser","bonemeal:fertiliser"},
	}
})

minetest.register_craft({
	output = "moreores:mineral_silver",
	recipe = {
		{"bonemeal:fertiliser","default:steelblock","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:tinblock","bonemeal:fertiliser"},
	}
})
minetest.register_craft({
	output = "moreores:mineral_silver 2",
	recipe = {
		{"bonemeal:fertiliser","moreores:silver_lump","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","bonemeal:fertiliser","bonemeal:fertiliser"},
	}
})

minetest.register_craft({
	output = "moreores:mineral_mithril",
	recipe = {
		{"bonemeal:fertiliser","default:mese","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","dye:blue","bonemeal:fertiliser"},
	}
})
minetest.register_craft({
	output = "moreores:mineral_mithril 2",
	recipe = {
		{"bonemeal:fertiliser","moreores:mithril_lump","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","bonemeal:fertiliser","bonemeal:fertiliser"},
	}
})

minetest.register_craft({
	output = "technic:mineral_chromium",
	recipe = {
		{"bonemeal:fertiliser","default:tinblock","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","dye:white","bonemeal:fertiliser"},
	}
})
minetest.register_craft({
	output = "technic:mineral_chromium 2",
	recipe = {
		{"bonemeal:fertiliser","technic:chromium_lump","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","bonemeal:fertiliser","bonemeal:fertiliser"},
	}
})

minetest.register_craft({
	output = "technic:mineral_lead",
	recipe = {
		{"bonemeal:fertiliser","default:tinblock","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","dye:grey","bonemeal:fertiliser"},
	}
})
minetest.register_craft({
	output = "technic:mineral_lead 2",
	recipe = {
		{"bonemeal:fertiliser","technic:lead_lump","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","bonemeal:fertiliser","bonemeal:fertiliser"},
	}
})

minetest.register_craft({
	output = "technic:mineral_sulfur",
	recipe = {
		{"bonemeal:fertiliser","default:tinblock","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","dye:yellow","bonemeal:fertiliser"},
	}
})
minetest.register_craft({
	output = "technic:mineral_sulfur 2",
	recipe = {
		{"bonemeal:fertiliser","technic:sulfur_lump","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","bonemeal:fertiliser","bonemeal:fertiliser"},
	}
})

minetest.register_craft({
	output = "technic:mineral_uranium",
	recipe = {
		{"bonemeal:fertiliser","default:goldblock","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","dye:green","bonemeal:fertiliser"},
	}
})
minetest.register_craft({
	output = "technic:mineral_uranium 2",
	recipe = {
		{"bonemeal:fertiliser","technic:uranium_lump","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","bonemeal:fertiliser","bonemeal:fertiliser"},
	}
})

minetest.register_craft({
	output = "technic:mineral_zinc",
	recipe = {
		{"bonemeal:fertiliser","default:tinblock","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","dye:cyan","bonemeal:fertiliser"},
	}
})
minetest.register_craft({
	output = "technic:mineral_zinc 2",
	recipe = {
		{"bonemeal:fertiliser","technic:zinc_lump","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","default:stone","bonemeal:fertiliser"},
		{"bonemeal:fertiliser","bonemeal:fertiliser","bonemeal:fertiliser"},
	}
})

minetest.register_craft({
	output = "technic:marble 2",
	recipe = {
		{"bonemeal:bonemeal","default:stone","bonemeal:bonemeal"},
		{"default:stone","dye:white","default:stone"},
		{"bonemeal:bonemeal","default:stone","bonemeal:bonemeal"}
	}
})

minetest.register_craft({
	output = "technic:granite 2",
	recipe = {
		{"bonemeal:bonemeal","default:stone","bonemeal:bonemeal"},
		{"default:stone","default:coral_skeleton","default:stone"},
		{"bonemeal:bonemeal","default:stone","bonemeal:bonemeal"}
	}
})
