From 877863509148983d3a4a796cfbc21007df04382b Mon Sep 17 00:00:00 2001 From: laza83 <41151943+laza83@users.noreply.github.com> Date: Sun, 23 Jun 2019 18:41:08 +0200 Subject: [PATCH] Edit init.lua to support more materialials --- depends.txt | 4 ++++ init.lua | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/depends.txt b/depends.txt index 4ad96d5..b8827df 100644 --- a/depends.txt +++ b/depends.txt @@ -1 +1,5 @@ default +bakedclay? +ethereal? +moreblocks? +technic? diff --git a/init.lua b/init.lua index 6bf57de..7b1ec85 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,27 @@ mymillwork = {} + +print("Loading mymillwork...") + dofile(minetest.get_modpath("mymillwork").."/machines.lua") dofile(minetest.get_modpath("mymillwork").."/nodes.lua") dofile(minetest.get_modpath("mymillwork").."/materials.lua") + +if minetest.get_modpath("bakedclay") then + print("[mymillwork] Bakedclay detected") + dofile(minetest.get_modpath("mymillwork").."/materials_bakedclay.lua") +end + +if minetest.get_modpath("ethereal") then + print("[mymillwork] Ethereal detected") + dofile(minetest.get_modpath("mymillwork").."/materials_ethereal.lua") +end + +if minetest.get_modpath("moreblocks") then + print("[mymillwork] Moreblocks detected") + dofile(minetest.get_modpath("mymillwork").."/materials_moreblocks.lua") +end + +if minetest.get_modpath("technic_worldgen") then + print("[mymillwork] Technic Worldgen detected") + dofile(minetest.get_modpath("mymillwork").."/materials_technic.lua") +end