minetest.register_craft({
   output = 'stations:mortar',
   recipe = {
      {'default:flint'},
      {'earthbuild:clay_pot'},
   }
})

minetest.register_craft({
   output = 'stations:anvil1',
   recipe = {
      {'','default:steelblock','stations:hammer'},
      {'default:furnace', 'group:tree', 'bucket:bucket_water'}
   }
})

minetest.register_craft({
   output = 'stations:puck_creator',
   recipe = {
      {'','earthbuild:flint_knife',''},
      {'earthbuild:flint_knife', 'default:furnace', 'earthbuild:flint_knife'},
      {'','earthbuild:flint_knife',''},
   }
})

minetest.register_craft({
   output = 'stations:crystal_workshop',
   recipe = {
      {'drawers:wood4', 'default:obsidian_shard', 'epic:bloodstone_shard'},
      {'default:mese_crystal_fragment', 'epic:float_crystal_shard', 'quartz:quartz_crystal_piece'},
      {'','xdecor:table',''},
   }
})

minetest.register_craft({
   output = 'stations:glazier_workshop',
   recipe = {
      {'vessels:glass_fragments', 'vessels:glass_fragments', 'vessels:glass_fragments'},
      {'epic:lead_wire', '', 'epic:lead_wire'},
      {'drawers:wood4','xdecor:table','drawers:wood4'},
   }
})

minetest.register_craft({
   output = 'stations:woodworking',
   recipe = {
      {'tombs:chisel', 'tombs:chisel', 'tombs:chisel'},
      {'default:wood', 'default:pine_wood', 'default:junglewood'},
      {'default:fence_wood','xdecor:cabinet_half','default:fence_wood'},
   }
})

minetest.register_craft({
   output = 'stations:hammer',
   recipe = {
      {'default:steel_ingot', 'group:stick', 'default:steel_ingot'},
      {'', 'group:stick', ''}
   }
})

minetest.register_craft({
   type = 'fuel',
   recipe = 'stations:fuel_pucks',
   burntime = 25,
})

------------------------------------------------------------------------------------------
--Locked to Unlocked Stations
local stations = {
   anvil1 = 'anvil_locked',
   crystal_workshop = 'crystal_workshop_locked',
   glazier_workshop = 'glazier_workshop_locked',
   woodworking = 'woodworking_locked',
   mortar = 'mortar_locked',
   puck_creator = 'puck_creator_locked',
   spinning_wheel = 'spinning_wheel_locked',
   sewing = 'sewing_locked',
   stain = 'stain_locked',
   weaving_loom = 'weaving_loom_locked',
   dying = 'dying_locked'
}

for unlocked, locked in pairs(stations) do
   minetest.register_craft({
      output = 'stations:'..unlocked,
      recipe = {{'stations:'..locked}}
   })

   minetest.register_craft({
      output = 'stations:'..locked,
      recipe = {{'stations:'..unlocked, 'furniture:lock'}}
   })
end
