
minetest.register_craftitem("super_sam:coin", {
	inventory_image = "super_sam_items.png^[sheet:6x5:4,3",
	description = "Coin"
})

minetest.register_craftitem("super_sam:mushroom_1", {
	inventory_image = "super_sam_items.png^[sheet:6x5:0,2",
	description = "Mushroom 1 (jump effect)"
})

minetest.register_craftitem("super_sam:mushroom_2", {
	inventory_image = "super_sam_items.png^[sheet:6x5:1,2",
	description = "Mushroom 2 (speed effect)"
})

minetest.register_craftitem("super_sam:mushroom_3", {
	inventory_image = "super_sam_items.png^[sheet:6x5:2,2",
	description = "Mushroom 3"
})

minetest.register_craftitem("super_sam:star_1", {
	inventory_image = "super_sam_items.png^[sheet:6x5:4,2",
	description = "Star 1"
})

minetest.register_craftitem("super_sam:star_2", {
	inventory_image = "super_sam_items.png^[sheet:6x5:5,2",
	description = "Star 2"
})

minetest.register_craftitem("super_sam:time_bonus", {
	inventory_image = "super_sam_time.png",
	description = "Time bonus"
})

minetest.register_craftitem("super_sam:heart", {
	inventory_image = "super_sam_heart.png",
	description = "Heart"
})

minetest.register_craftitem("super_sam:flower_1", {
	inventory_image = "super_sam_flower_1.png",
	description = "Flower 1"
})

if minetest.get_modpath("i3") then
	i3.compress("super_sam:mushroom_1", {
		replace = "_1",
		by = {"_2", "_3"}
	})

	i3.compress("super_sam:star_1", {
		replace = "_1",
		by = {"_2"}
	})
end