forked from minetest-mods/mymillwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edit init.lua to support more materialials
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
default | ||
bakedclay? | ||
ethereal? | ||
moreblocks? | ||
technic? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |