plantlife_modpack/ferns/init.lua

47 lines
1.7 KiB
Lua
Raw Normal View History

-----------------------------------------------------------------------------------------------
local title = "Ferns" -- former "Archae Plantae"
2014-08-20 10:36:13 +02:00
local version = "0.2.0"
local mname = "ferns" -- former "archaeplantae"
-----------------------------------------------------------------------------------------------
-- (by Mossmanikin)
-- License (everything): WTFPL
-----------------------------------------------------------------------------------------------
2014-08-23 10:45:27 +02:00
local run_tests = true
abstract_ferns = {}
dofile(minetest.get_modpath("ferns").."/settings.lua")
2014-08-22 09:04:34 +02:00
if abstract_ferns.config.enable_lady_fern == true then
2014-08-20 10:35:08 +02:00
dofile(minetest.get_modpath("ferns").."/fern.lua")
end
2014-08-22 09:04:34 +02:00
if abstract_ferns.config.enable_horsetails == true then
dofile(minetest.get_modpath("ferns").."/horsetail.lua")
end
2014-08-22 09:04:34 +02:00
if abstract_ferns.config.enable_treefern == true then
dofile(minetest.get_modpath("ferns").."/treefern.lua")
end
2014-08-22 09:04:34 +02:00
if abstract_ferns.config.enable_giant_treefern == true then
dofile(minetest.get_modpath("ferns").."/gianttreefern.lua")
end
dofile(minetest.get_modpath("ferns").."/crafting.lua")
2014-08-23 10:45:27 +02:00
if run_tests then
-- Check node names
if abstract_ferns.config.enable_horsetails then
assert(minetest.registered_items["ferns:horsetail_01"] ~= nil)
assert(minetest.registered_items["ferns:horsetail_02"] ~= nil)
assert(minetest.registered_items["ferns:horsetail_03"] ~= nil)
assert(minetest.registered_items["ferns:horsetail_04"] ~= nil)
end
end
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------