Edit init.lua to support more materialials

This commit is contained in:
laza83 2019-06-23 18:41:08 +02:00 committed by GitHub
parent acb4b8b9dd
commit 8778635091
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

View File

@ -1 +1,5 @@
default default
bakedclay?
ethereal?
moreblocks?
technic?

View File

@ -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