123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
-
- ethereal = {
- version = "1.27",
- leaftype = 0,
- leafwalk = false,
- cavedirt = true,
- torchdrop = true,
- papyruswalk = true,
- lilywalk = true,
- xcraft = true,
- glacier = 1,
- bamboo = 1,
- mesa = 1,
- alpine = 1,
- healing = 1,
- snowy = 1,
- frost = 1,
- grassy = 1,
- caves = 1,
- grayness = 1,
- grassytwo = 1,
- prairie = 1,
- jumble = 1,
- junglee = 1,
- desert = 1,
- grove = 1,
- mushroom = 1,
- sandstone = 1,
- quicksand = 1,
- plains = 1,
- savannah = 1,
- fiery = 1,
- sandclay = 1,
- swamp = 1,
- sealife = 1,
- reefs = 1,
- sakura = 1,
- tundra = 1,
- }
- local path = minetest.get_modpath("ethereal")
- local input = io.open(path.."/settings.conf", "r")
- if input then
- dofile(path .. "/settings.conf")
- input:close()
- input = nil
- end
- local S
- if minetest.global_exists("intllib") then
- if intllib.make_gettext_pair then
-
- S = intllib.make_gettext_pair()
- else
-
- S = intllib.Getter()
- end
- else
- S = function(s) return s end
- end
- ethereal.intllib = S
- ethereal.check_falling = minetest.check_for_falling or nodeupdate
- local creative_mode_cache = minetest.settings:get_bool("creative_mode")
- function ethereal.check_creative(name)
- return creative_mode_cache or minetest.check_player_privs(name, {creative = true})
- end
- dofile(path .. "/plantlife.lua")
- dofile(path .. "/mushroom.lua")
- dofile(path .. "/onion.lua")
- dofile(path .. "/crystal.lua")
- dofile(path .. "/water.lua")
- dofile(path .. "/dirt.lua")
- dofile(path .. "/food.lua")
- dofile(path .. "/wood.lua")
- dofile(path .. "/leaves.lua")
- dofile(path .. "/sapling.lua")
- dofile(path .. "/strawberry.lua")
- dofile(path .. "/fishing.lua")
- dofile(path .. "/extra.lua")
- dofile(path .. "/sealife.lua")
- dofile(path .. "/fences.lua")
- dofile(path .. "/gates.lua")
- dofile(path .. "/mapgen.lua")
- dofile(path .. "/compatibility.lua")
- dofile(path .. "/stairs.lua")
- dofile(path .. "/hunger.lua")
- dofile(path .. "/lucky_block.lua")
- if minetest.get_modpath("bonemeal") then
- minetest.register_alias("ethereal:bone", "bonemeal:bone")
- minetest.register_alias("ethereal:bonemeal", "bonemeal:bonemeal")
- else
- minetest.register_alias("ethereal:bone", "default:dirt")
- minetest.register_alias("ethereal:bonemeal", "default:dirt")
- end
- if minetest.get_modpath("xanadu") then
- dofile(path .. "/plantpack.lua")
- end
- print (S("[MOD] Ethereal loaded"))
|