--CODE AND MESH BORROWED FROM AURORA_TECH FOR ALL STONES--

minetest.register_node("infinity:stonesoul", {
	description = "Soul Stone",
	tiles = { "infinity_soulstonemesh.png" },
	drawtype = "mesh",
	mesh = "infinity_stone.b3d",
	light_source = 40,
	groups = {crumbly = 2},

	selection_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} }
	},
	collision_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} },
	},
})

minetest.register_node("infinity:stonereality", {
	description = "Reality Stone",
	tiles = { "infinity_realitystonemesh.png" },
	drawtype = "mesh",
	mesh = "infinity_stone.b3d",
	light_source = 40,
	groups = {crumbly = 1},

	selection_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} }
	},
	collision_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} },
	},
})

minetest.register_node("infinity:stonespace", {
	description = "Space Stone",
	tiles = { "infinity_spacestonemesh.png" },
	drawtype = "mesh",
	mesh = "infinity_stone.b3d",
	light_source = 40,
	groups = {crumbly = 1},

	selection_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} }
	},
	collision_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} },
	},
})

minetest.register_node("infinity:stonepower", {
    description = "Power Stone",
	tiles = { "infinity_powerstonemesh.png" },
	drawtype = "mesh",
	mesh = "infinity_stone.b3d",
	light_source = 40,
	groups = {crumbly = 1},

	selection_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} }
	},
	collision_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} },
	},
})

minetest.register_node("infinity:stonetime", {
    description = "Time Stone",
	tiles = { "infinity_timestonemesh.png" },
	drawtype = "mesh",
	mesh = "infinity_stone.b3d",
	light_source = 40,
	groups = {crumbly = 1},

	selection_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} }
	},
	collision_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} },
	},
})

minetest.register_node("infinity:stonemind", {
    description = "Mind Stone",
	tiles = { "infinity_mindstonemesh.png" },
	drawtype = "mesh",
	mesh = "infinity_stone.b3d",
	light_source = 40,
	groups = {crumbly = 1},

	selection_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} }
	},
	collision_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} },
	},
})

--DECORATION STONES--

minetest.register_node("infinity:decstonesoul", {
	description = "Decorative Useless Soul Stone",
	tiles = { "infinity_soulstonemesh.png" },
	drawtype = "mesh",
	mesh = "infinity_stone.b3d",
	light_source = 40,
	groups = {crumbly = 1},

	selection_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} }
	},
	collision_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} },
	},
})

minetest.register_node("infinity:decstonereality", {
	description = "Decorative Useless Reality Stone",
	tiles = { "infinity_realitystonemesh.png" },
	drawtype = "mesh",
	mesh = "infinity_stone.b3d",
	light_source = 40,
	groups = {crumbly = 1},

	selection_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} }
	},
	collision_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} },
	},
})

minetest.register_node("infinity:decstonespace", {
	description = "Decorative Useless Space Stone",
	tiles = { "infinity_spacestonemesh.png" },
	drawtype = "mesh",
	mesh = "infinity_stone.b3d",
	light_source = 40,
	groups = {crumbly = 1},

	selection_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} }
	},
	collision_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} },
	},
})

minetest.register_node("infinity:decstonepower", {
    description = "Decorative Useless Power Stone",
	tiles = { "infinity_powerstonemesh.png" },
	drawtype = "mesh",
	mesh = "infinity_stone.b3d",
	light_source = 40,
	groups = {crumbly = 1},

	selection_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} }
	},
	collision_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} },
	},
})

minetest.register_node("infinity:decstonetime", {
    description = "Decorative Useless Time Stone",
	tiles = { "infinity_timestonemesh.png" },
	drawtype = "mesh",
	mesh = "infinity_stone.b3d",
	light_source = 40,
	groups = {crumbly = 1},

	selection_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} }
	},
	collision_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} },
	},
})

minetest.register_node("infinity:decstonemind", {
    description = "Decorative Useless Mind Stone",
	tiles = { "infinity_mindstonemesh.png" },
	drawtype = "mesh",
	mesh = "infinity_stone.b3d",
	light_source = 40,
	groups = {crumbly = 1},

	selection_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} }
	},
	collision_box = {
    type = "fixed",
    fixed = { {-2 / 16, -2 / 16, -2 / 16, 2 / 16, 2 / 16, 2 / 16} },
	},
})

--CRAFTITEMS FOR CRAFTING THE STONES--
minetest.register_craftitem("infinity:stonesoulpieceone", {
    description = "Piece used to Craft The Soul Stone",
    inventory_image = "infinity_soulst0ne1.png",
})

minetest.register_craftitem("infinity:stonesoulpiecetwo", {
    description = "Piece used to Craft The Soul Stone",
    inventory_image = "infinity_soulst0ne23.png",
})

minetest.register_craftitem("infinity:stonesoulpiecethree", {
    description = "Piece used to Craft The Soul Stone",
    inventory_image = "infinity_soulst0ne456.png",
})

minetest.register_craftitem("infinity:stonesoulpiecefour", {
    description = "Piece used to Craft The Soul Stone",
    inventory_image = "infinity_soulst0ne789.png",
})

minetest.register_craftitem("infinity:stonerealitypieceone", {
    description = "Piece used to Craft The Reality Stone",
    inventory_image = "infinity_realitystone1.png",
})

minetest.register_craftitem("infinity:stonerealitypiecetwo", {
    description = "Piece used to Craft The Reality Stone",
    inventory_image = "infinity_realitystone23.png",
})

minetest.register_craftitem("infinity:stonerealitypiecethree", {
    description = "Piece used to Craft The Reality Stone",
    inventory_image = "infinity_realitystone456.png",
})

minetest.register_craftitem("infinity:stonerealitypiecefour", {
    description = "Piece used to Craft The Reality Stone",
    inventory_image = "infinity_realitystone789.png",
})

minetest.register_craftitem("infinity:stonepowerpieceone", {
    description = "Piece used to Craft The Power Stone",
    inventory_image = "infinity_powerstone1.png",
})

minetest.register_craftitem("infinity:stonepowerpiecetwo", {
    description = "Piece used to Craft The Power Stone",
    inventory_image = "infinity_powerstone23.png",
})

minetest.register_craftitem("infinity:stonepowerpiecethree", {
    description = "Piece used to Craft The Power Stone",
    inventory_image = "infinity_powerstone456.png",
})

minetest.register_craftitem("infinity:stonepowerpiecefour", {
    description = "Piece used to Craft The Power Stone",
    inventory_image = "infinity_powerstone789.png",
})

minetest.register_craftitem("infinity:stonetimepieceone", {
    description = "Piece used to Craft The Time Stone",
    inventory_image = "infinity_timestone1.png",
})

minetest.register_craftitem("infinity:stonetimepiecetwo", {
    description = "Piece used to Craft The Time Stone",
    inventory_image = "infinity_timestone23.png",
})

minetest.register_craftitem("infinity:stonetimepiecethree", {
    description = "Piece used to Craft The Time Stone",
    inventory_image = "infinity_timestone456.png",
})

minetest.register_craftitem("infinity:stonetimepiecefour", {
    description = "Piece used to Craft The Time Stone",
    inventory_image = "infinity_timestone789.png",
})

minetest.register_craftitem("infinity:stonemindpieceone", {
    description = "Piece used to Craft The Mind Stone",
    inventory_image = "infinity_mindstone1.png",
})

minetest.register_craftitem("infinity:stonemindpiecetwo", {
    description = "Piece used to Craft The Mind Stone",
    inventory_image = "infinity_mindstone23.png",
})

minetest.register_craftitem("infinity:stonemindpiecethree", {
    description = "Piece used to Craft The Mind Stone",
    inventory_image = "infinity_mindstone456.png",
})

minetest.register_craftitem("infinity:stonemindpiecefour", {
    description = "Piece used to Craft The Mind Stone",
    inventory_image = "infinity_mindstone789.png",
})