minetest.register_node('furniture:file_cabinet', {
   description = 'File Cabinet',
   drawtype = 'mesh',
   mesh = 'furniture_file_cabinet.obj',
   tiles = {'furniture_file_cabinet.png'},
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = {
      type = 'fixed',
      fixed = {-.45, -.5, -.5, .45, 1, .45},
      },
   collision_box = {
      type = 'fixed',
      fixed = {-.45, -.5, -.5, .45, 1, .45},
      },
   groups = {breakable=1, stash=1},
   on_rightclick = furniture.right_click,
   on_punch = furniture.punch
})

minetest.register_node('furniture:pc_old', {
   description = 'Old Personal Computer',
   drawtype = 'mesh',
   mesh = 'furniture_pc_old.obj',
   tiles = {'furniture_pc_old.png'},
   paramtype = 'light',
   paramtype2 = 'facedir',
   light_source = 4,
   selection_box = {
      type = 'fixed',
      fixed = {{-.475, -.5, -.25, .45, -.25, .5},
               {-.4, -.25, -.25, .35, .45, .45}}
      },
   collision_box = {
      type = 'fixed',
      fixed = {{-.475, -.5, -.25, .45, -.25, .5},
               {-.4, -.25, -.25, .35, .45, .45}}
      },
   groups = {breakable=1},
})

minetest.register_node('furniture:pc_screen', {
   description = 'Ultrawide monitor',
   drawtype = 'mesh',
   mesh = 'furniture_pc_screen.obj',
   tiles = {'furniture_pc_screen.png'},
   paramtype = 'light',
   paramtype2 = 'facedir',
   light_source = 4,
   selection_box = {
      type = 'fixed',
      fixed = {{-.45, -.5, -.35, .45, -.45, 0},
               {-.95, -.45, .3, .95, .45, .45}}
      },
   collision_box = {
      type = 'fixed',
      fixed = {{-.45, -.5, -.35, .45, -.45, 0},
               {-.95, -.45, .3, .95, .45, .45}}
      },
   groups = {breakable=1},
})

minetest.register_node('furniture:pc_laptop', {
   description = 'Laptop',
   drawtype = 'mesh',
   mesh = 'furniture_pc_laptop.obj',
   tiles = {'furniture_pc_laptop.png'},
   paramtype = 'light',
   paramtype2 = 'facedir',
   light_source = 4,
   selection_box = {
      type = 'fixed',
      fixed = {{-.45, -.5, -.35, .45, -.45, .35},
               {-.45, -.45, .25, .45, .15, .5}}
      },
   collision_box = {
      type = 'fixed',
      fixed = {{-.45, -.5, -.35, .45, -.45, .35},
               {-.45, -.45, .25, .45, .15, .5}}
      },
   groups = {breakable=1},
})

minetest.register_node('furniture:server_1', {
   description = 'Tall Server Rack',
   drawtype = 'mesh',
   mesh = 'furniture_server_rack_1.obj',
   tiles = {'furniture_server_rack_1.png'},
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = {
      type = 'fixed',
      fixed = {-.45, -.5, -.5, .45, 1.5, .45},
      },
   collision_box = {
      type = 'fixed',
      fixed = {-.45, -.5, -.5, .45, 1.5, .45},
      },
   _sound = 'server_rack',
   groups = {breakable=1, plays_sound=1},
})

minetest.register_node('furniture:server_2', {
   description = 'Medium Server Rack',
   drawtype = 'mesh',
   mesh = 'furniture_server_rack_2.obj',
   tiles = {'furniture_server_rack_2.png'},
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = {
      type = 'fixed',
      fixed = {-.45, -.5, -.5, .45, 1, .45},
      },
   collision_box = {
      type = 'fixed',
      fixed = {-.45, -.5, -.5, .45, 1, .45},
      },
   _sound = 'server_rack',
   groups = {breakable=1, plays_sound=1},
})

minetest.register_node('furniture:server_3', {
   description = 'Short Server Rack',
   drawtype = 'mesh',
   mesh = 'furniture_server_rack_3.obj',
   tiles = {'furniture_server_rack_3.png'},
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = {
      type = 'fixed',
      fixed = {-.45, -.5, -.5, .45, .5, .45},
      },
   collision_box = {
      type = 'fixed',
      fixed = {-.45, -.5, -.5, .45, .5, .45},
      },
   _sound = 'server_rack',
   groups = {breakable=1, plays_sound=1},
})

minetest.register_node('furniture:desk', {
   description = 'Desk',
   drawtype = 'mesh',
   mesh = 'furniture_desk.obj',
   tiles = {'furniture_desk.png'},
   paramtype = 'light',
   paramtype2 = 'colorfacedir',
   palette = 'furniture_stain_palette.png',
   selection_box = {
      type = 'fixed',
      fixed = {-.5, -.5, -.5, 1.5, .5, .5}
   },
   collision_box = {
      type = 'fixed',
      fixed = {-.5, -.5, -.5, 1.5, .5, .5}
   },
   groups = {breakable=1, stash=1},
   on_rightclick = furniture.right_click,
   on_punch = furniture.punch
})

minetest.register_node('furniture:water_cooler', {
   description = 'Water Cooler',
   drawtype = 'mesh',
   mesh = 'furniture_water_cooler.obj',
   tiles = {'furniture_water_cooler.png'},
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = {
      type = 'fixed',
      fixed = {-.375, -.5, -.3125, .375, 1.5, .4375},
      },
   collision_box = {
      type = 'fixed',
      fixed = {-.45, -.5, -.5, .45, 1.5, .45},
      },
   _sound = 'server_rack',
   groups = {breakable=1},
})
