local ceiling_tube_col = {
   type = 'fixed',
   fixed = {-.4, -.4, -.4, .4, -.5, .4}, -- Right, Bottom, Back, Left, Top, Front
   }

local neon_light_level = 8

minetest.register_node('lights:ceiling_tube_end_long', {
   description = 'Ceiling Tube (Long End)',
   drawtype = 'mesh',
   mesh = 'lights_ceiling_tube_end_long.obj',
   tiles = {'lights_ceiling_tube.png'},
   groups = {breakable=1},
   light_source = neon_light_level,
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = ceiling_tube_col,
   collision_box = ceiling_tube_col,
   on_place = minetest.rotate_node,
})

minetest.register_node('lights:ceiling_tube_end_short', {
   description = 'Ceiling Tube (Short End)',
   drawtype = 'mesh',
   mesh = 'lights_ceiling_tube_end_short.obj',
   tiles = {'lights_ceiling_tube.png'},
   groups = {breakable=1},
   light_source = neon_light_level,
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = ceiling_tube_col,
   collision_box = ceiling_tube_col,
   on_place = minetest.rotate_node,
})

minetest.register_node('lights:ceiling_tube_straight', {
   description = 'Ceiling Tube',
   drawtype = 'mesh',
   mesh = 'lights_ceiling_tube_straight.obj',
   tiles = {'lights_ceiling_tube.png'},
   groups = {breakable=1},
   light_source = neon_light_level,
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = ceiling_tube_col,
   collision_box = ceiling_tube_col,
   on_place = minetest.rotate_node,
})

minetest.register_node('lights:ceiling_tube_T', {
   description = 'Ceiling Tube (T-Junction)',
   drawtype = 'mesh',
   mesh = 'lights_ceiling_tube_T.obj',
   tiles = {'lights_ceiling_tube.png'},
   groups = {breakable=1},
   light_source = neon_light_level,
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = ceiling_tube_col,
   collision_box = ceiling_tube_col,
   on_place = minetest.rotate_node,
})

minetest.register_node('lights:ceiling_tube_turn', {
   description = 'Ceiling Tube (90 Degree Turn)',
   drawtype = 'mesh',
   mesh = 'lights_ceiling_tube_turn.obj',
   tiles = {'lights_ceiling_tube.png'},
   groups = {breakable=1},
   light_source = neon_light_level,
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = ceiling_tube_col,
   collision_box = ceiling_tube_col,
   on_place = minetest.rotate_node,
})

minetest.register_node('lights:ceiling_tube_U', {
   description = 'Ceiling Tube (U)',
   drawtype = 'mesh',
   mesh = 'lights_ceiling_tube_U.obj',
   tiles = {'lights_ceiling_tube.png'},
   groups = {breakable=1},
   light_source = neon_light_level,
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = ceiling_tube_col,
   collision_box = ceiling_tube_col,
   on_place = minetest.rotate_node,
})

minetest.register_node('lights:ceiling_tube_X', {
   description = 'Ceiling Tube (4-way Junction)',
   drawtype = 'mesh',
   mesh = 'lights_ceiling_tube_X.obj',
   tiles = {'lights_ceiling_tube.png'},
   groups = {breakable=1},
   light_source = neon_light_level,
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = ceiling_tube_col,
   collision_box = ceiling_tube_col,
   on_place = minetest.rotate_node,
})
