summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2014-05-01 21:21:40 +0100
committerRealBadAngel <maciej.kasatkin@o2.pl>2014-05-24 00:23:48 +0200
commit29429f636eea272aaddc13be54b9fd41f1b0c8e9 (patch)
tree70e96e627c18a696a11d3f1875778b9b827c573e
parenta5fc7ac41ea4c8b6ce3c9bcd1807b33c5aee9c9a (diff)
Only make gloop dusts if gloopores is present
-rw-r--r--technic/machines/register/grinder_recipes.lua23
1 files changed, 14 insertions, 9 deletions
diff --git a/technic/machines/register/grinder_recipes.lua b/technic/machines/register/grinder_recipes.lua
index 13fa8f1..4ae24f8 100644
--- a/technic/machines/register/grinder_recipes.lua
+++ b/technic/machines/register/grinder_recipes.lua
@@ -52,11 +52,6 @@ local recipes = {
{"default:gravel", "default:dirt"},
{"default:iron_lump", "technic:wrought_iron_dust 2"},
{"default:stone", "default:sand"},
- {"gloopores:alatro_lump", "technic:alatro_dust 2"},
- {"gloopores:kalite_lump", "technic:kalite_dust 2"},
- {"gloopores:arol_lump", "technic:arol_dust 2"},
- {"gloopores:talinite_lump", "technic:talinite_dust 2"},
- {"gloopores:akalin_lump", "technic:akalin_dust 2"},
{"moreores:mithril_ingot", "technic:mithril_dust 1"},
{"moreores:mithril_lump", "technic:mithril_dust 2"},
{"moreores:silver_ingot", "technic:silver_dust 1"},
@@ -74,6 +69,14 @@ local recipes = {
{"technic:brass_ingot", "technic:brass_dust 1"},
}
+if minetest.get_modpath("gloopores") then
+ table.insert(recipes, {"gloopores:alatro_lump", "technic:alatro_dust 2"})
+ table.insert(recipes, {"gloopores:kalite_lump", "technic:kalite_dust 2"})
+ table.insert(recipes, {"gloopores:arol_lump", "technic:arol_dust 2"})
+ table.insert(recipes, {"gloopores:talinite_lump", "technic:talinite_dust 2"})
+ table.insert(recipes, {"gloopores:akalin_lump", "technic:akalin_dust 2"})
+end
+
if minetest.get_modpath("homedecor") then
table.insert(recipes, {"home_decor:brass_ingot", "technic:brass_dust 1"})
end
@@ -100,9 +103,6 @@ local function register_dust(name, ingot)
end
-- Sorted alphibeticaly
-register_dust("Akalin", "glooptest:akalin_ingot")
-register_dust("Alatro", "glooptest:alatro_ingot")
-register_dust("Arol", "glooptest:arol_ingot")
register_dust("Brass", "technic:brass_ingot")
register_dust("Bronze", "default:bronze_ingot")
register_dust("Carbon Steel", "technic:carbon_steel_ingot")
@@ -114,10 +114,15 @@ register_dust("Gold", "default:gold_ingot")
register_dust("Mithril", "moreores:mithril_ingot")
register_dust("Silver", "moreores:silver_ingot")
register_dust("Stainless Steel", "technic:stainless_steel_ingot")
-register_dust("Talinite", "glooptest:talinite_ingot")
register_dust("Tin", "moreores:tin_ingot")
register_dust("Wrought Iron", "technic:wrought_iron_ingot")
register_dust("Zinc", "technic:zinc_ingot")
+if minetest.get_modpath("gloopores") then
+ register_dust("Akalin", "glooptest:akalin_ingot")
+ register_dust("Alatro", "glooptest:alatro_ingot")
+ register_dust("Arol", "glooptest:arol_ingot")
+ register_dust("Talinite", "glooptest:talinite_ingot")
+end
minetest.register_craft({
type = "fuel",