Edit init.lua to support more materialials
This commit is contained in:
parent
acb4b8b9dd
commit
8778635091
@ -1 +1,5 @@
|
|||||||
default
|
default
|
||||||
|
bakedclay?
|
||||||
|
ethereal?
|
||||||
|
moreblocks?
|
||||||
|
technic?
|
||||||
|
23
init.lua
23
init.lua
@ -1,4 +1,27 @@
|
|||||||
mymillwork = {}
|
mymillwork = {}
|
||||||
|
|
||||||
|
print("Loading mymillwork...")
|
||||||
|
|
||||||
dofile(minetest.get_modpath("mymillwork").."/machines.lua")
|
dofile(minetest.get_modpath("mymillwork").."/machines.lua")
|
||||||
dofile(minetest.get_modpath("mymillwork").."/nodes.lua")
|
dofile(minetest.get_modpath("mymillwork").."/nodes.lua")
|
||||||
dofile(minetest.get_modpath("mymillwork").."/materials.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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user