Skip to content

Commit

Permalink
Edit init.lua to support more materialials
Browse files Browse the repository at this point in the history
  • Loading branch information
laza83 committed Jun 23, 2019
1 parent acb4b8b commit 8778635
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions depends.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
default
bakedclay?
ethereal?
moreblocks?
technic?
23 changes: 23 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8778635

Please sign in to comment.