minetest.register_node('signs:directional_sign', {
   drawtype = 'mesh',
   mesh = 'signs_directional.obj',
   description = 'Directional Sign',
   groups = {breakable=1},
   sunlight_propagates = true,
   paramtype = 'light',
   paramtype2 = 'facedir',
   tiles = {'signs_directional.png'},
   selection_box = {
      type = 'fixed',
      fixed = {-.4, 0, .4, .45, .325, .5},
      },
   collision_box = {
      type = 'fixed',
      fixed = {-.45, -.1, .4, .45, .4, .5},
      },
   on_construct = signs.on_construct,
   after_place_node = signs.after_place_node,
   on_receive_fields = signs.on_receive_fields
})

minetest.register_node('signs:post_directional', {-- Update to degrotate  after next release.
   drawtype = 'mesh',
   mesh = 'signs_post_directional.obj',
   description = 'Directional Sign Post',
   groups = {breakable=1},
   sunlight_propagates = true,
   paramtype = 'light',
   paramtype2 = 'facedir',
   tiles = {'signs_post_directional.png'},
   selection_box = {
      type = 'fixed',
      fixed = {-.4, -.1, -.1, .45, .4, .1},
      },
   collision_box = {
      type = 'fixed',
      fixed = {-.4, -.3, -.1, .45, .4, .1},
      },
   on_construct = signs.on_construct,
   after_place_node = signs.after_place_node,
   on_receive_fields = signs.on_receive_fields
})

minetest.register_node('signs:1_wood', {
   drawtype = 'mesh',
   mesh = 'signs_wall_1.obj',
   description = 'Wall Sign (wooden)',
   groups = {breakable=1},
   sunlight_propagates = true,
   paramtype = 'light',
   paramtype2 = 'facedir',
   tiles = {'signs_1_wood.png'},
   selection_box = {
      type = 'fixed',
      fixed = {-.4375, -.3125, .5, .4375, .3125, .4375},
      },
   collision_box = {
      type = 'fixed',
      fixed = {-.4375, -.3125, .5, .4375, .3125, .4375},
      },
   on_construct = signs.on_construct,
   after_place_node = signs.after_place_node,
   on_receive_fields = signs.on_receive_fields
})

minetest.register_node('signs:1_metal', {
   drawtype = 'mesh',
   mesh = 'signs_wall_1.obj',
   description = 'Wall Sign (metal)',
   groups = {breakable=1},
   sunlight_propagates = true,
   paramtype = 'light',
   paramtype2 = 'facedir',
   tiles = {'signs_1_steel.png'},
   selection_box = {
      type = 'fixed',
      fixed = {-.4375, -.3125, .5, .4375, .3125, .4375},
      },
   collision_box = {
      type = 'fixed',
      fixed = {-.4375, -.3125, .5, .4375, .3125, .4375},
      },
   on_construct = signs.on_construct,
   after_place_node = signs.after_place_node,
   on_receive_fields = signs.on_receive_fields
})

for i = 1, 6 do
   minetest.register_node('signs:poster_'..i, {
      description = 'Poster',
      drawtype = 'mesh',
      mesh = 'signs_poster_1.obj',
      groups = {breakable=1},
      sunlight_propagates = true,
      paramtype = 'light',
      paramtype2 = 'facedir',
      tiles = {'signs_poster_'..i..'.png'},
      use_texture_alpha = 'clip',
      walkable = false,
      selection_box = {
         type = 'fixed',
         fixed = {-.5, -.5, .45, .5, .5, .5},
         },
      collision_box = {
         type = 'fixed',
         fixed = {-.5, -.5, .45, .5, .5, .5},
         },
      on_construct = signs.on_construct,
      after_place_node = signs.after_place_node,
      on_receive_fields = signs.on_receive_fields
   })
end
