Zefram
2014-07-25 d59055dd2b1a03449ff11318a2f210d37dd7e76a
technic/machines/register/grinder_recipes.lua
@@ -15,9 +15,6 @@
   {"default:desert_stone",    "default:desert_sand"},
   {"default:gold_lump",       "technic:gold_dust 2"},
   {"default:iron_lump",       "technic:wrought_iron_dust 2"},
   {"moreores:mithril_lump",   "technic:mithril_dust 2"},
   {"moreores:silver_lump",    "technic:silver_dust 2"},
   {"moreores:tin_lump",       "technic:tin_dust 2"},
   {"technic:chromium_lump",   "technic:chromium_dust 2"},
   {"technic:zinc_lump",       "technic:zinc_dust 2"},
   
@@ -26,6 +23,12 @@
   {"default:gravel",          "default:dirt"},
   {"default:stone",           "default:sand"},
}
if minetest.get_modpath("moreores") then
   table.insert(recipes, {"moreores:mithril_lump",   "technic:mithril_dust 2"})
   table.insert(recipes, {"moreores:silver_lump",    "technic:silver_dust 2"})
   table.insert(recipes, {"moreores:tin_lump",       "technic:tin_dust 2"})
end
if minetest.get_modpath("gloopores") or minetest.get_modpath("glooptest") then
   table.insert(recipes, {"gloopores:alatro_lump",   "technic:alatro_dust 2"})
@@ -40,7 +43,7 @@
end
for _, data in pairs(recipes) do
   technic.register_grinder_recipe({input = data[1], output = data[2]})
   technic.register_grinder_recipe({input = {data[1]}, output = data[2]})
end
local function register_dust(name, ingot)
@@ -57,7 +60,7 @@
         recipe = "technic:"..lname.."_dust",
         output = ingot,
      })
      technic.register_grinder_recipe({ input = ingot, output = "technic:"..lname.."_dust 1" })
      technic.register_grinder_recipe({ input = {ingot}, output = "technic:"..lname.."_dust 1" })
   end
end