-- Author: Astrobe
-- Licence: same as Minetest v5.0.

minetest.register_craftitem("more_mese:mese_crystal_red", {
	description = "Red Mese Crystal.\n Can be traded for Greater Armor.",
	inventory_image = "default_mese_crystal_white.png^[multiply:red",
})

minetest.register_craftitem("more_mese:mese_crystal_fragment_red", {
	description = "Red Mese Crystal Fragment",
	inventory_image = "default_mese_crystal_fragment_white.png^[multiply:red",
})

minetest.register_craftitem("more_mese:mese_crystal_green", {
	description = "Green Mese Crystal.",
	inventory_image = "default_mese_crystal_white.png^[multiply:green",
})

minetest.register_craftitem("more_mese:mese_crystal_fragment_green", {
	description = "Green Mese Crystal Fragment",
	inventory_image = "default_mese_crystal_fragment_white.png^[multiply:green",
})

minetest.register_craftitem("more_mese:mese_crystal_grey", {
	description = "Grey Mese Crystal.",
	inventory_image = "default_mese_crystal_white.png^[multiply:grey",
})

minetest.register_craftitem("more_mese:mese_crystal_fragment_grey", {
	description = "Grey Mese Crystal Fragment",
	inventory_image = "default_mese_crystal_fragment_white.png^[multiply:grey",
})

minetest.register_craftitem("more_mese:mese_crystal_cyan", {
	description = "Blue Mese Crystal.",
	inventory_image = "default_mese_crystal_white.png^[multiply:cyan",
})

minetest.register_craftitem("more_mese:mese_crystal_fragment_cyan", {
	description = "Blue Mese Crystal Fragment",
	inventory_image = "default_mese_crystal_fragment_white.png^[multiply:cyan",
})

minetest.register_craftitem("more_mese:mese_crystal_orange", {
	description = "Orange Mese Crystal.",
	inventory_image = "default_mese_crystal_white.png^[multiply:orange",
})

minetest.register_craftitem("more_mese:mese_crystal_fragment_orange", {
	description = "Orange Mese Crystal Fragment.\nCan be traded for a Scroll of Return (see FAQ)",
	inventory_image = "default_mese_crystal_fragment_white.png^[multiply:orange",
})

local function _(inp, outp)
	minetest.register_craft({
		output = outp,
		recipe = {
		{inp,inp,inp},
		{inp,inp,inp},
		{inp,inp,inp},
		}
		})
	minetest.register_craft({
			output = inp.." 9",
			recipe = {
			{outp},
			}
			})

	end
_("more_mese:mese_crystal_fragment_red", "more_mese:mese_crystal_red")
_("more_mese:mese_crystal_fragment_green", "more_mese:mese_crystal_green")
_("more_mese:mese_crystal_fragment_grey", "more_mese:mese_crystal_grey")
_("more_mese:mese_crystal_fragment_cyan", "more_mese:mese_crystal_cyan")
_("more_mese:mese_crystal_fragment_orange", "more_mese:mese_crystal_orange")
