local malm_box = {
	type = "fixed",
	fixed = {
		{-0.875, 0.5, 1.4375, 0.875, -0.5, 1.5}, -- Headboard
		{-0.875, 0.0, 1.4375, 0.8125, -0.5, -0.6875}, -- Everything Else
	},
}

local malm_def = ikea.default_furniture_def()
malm_def.description = "Malm Bed"
malm_def.mesh = "ikea_beds_malm.obj"
malm_def.tiles = {"ikea_beds_malm.png"}
malm_def.selection_box = malm_box
malm_def.collision_box = malm_box
malm_def.groups.size_x = 2
malm_def.groups.size_z = 2
malm_def.groups.bed = 1
malm_def.groups.bedroom = 1
malm_def.box_contents = {"ikea:furniture_board", "ikea:furniture_board", "ikea:furniture_board", "ikea:furniture_board"}
malm_def.tool_capabilities = {
	full_punch_interval = 15,
	damage_groups = {fleshy = 30},
}

minetest.register_node(":beds:malm", malm_def)
