init.lua 596 B

123456789101112131415161718192021
  1. oillamps = {
  2. mod = {author = "Andreas Demant"},
  3. modpath = minetest.get_modpath("oillamps"),
  4. modname = minetest.get_current_modname(),
  5. }
  6. minetest.log("action", "[MOD]"..oillamps.modname.." -- start loading ")
  7. dofile(oillamps.modpath .. "/config.lua")
  8. if(oillamps.bexist) then
  9. dofile(oillamps.modpath .. "/nodes.lua")
  10. dofile(oillamps.modpath .. "/craftitems.lua")
  11. dofile(oillamps.modpath .. "/crafts.lua")
  12. else
  13. minetest.log("action", "[MOD]"..oillamps.modname.." -- no ressources found -> not defining oil lamps ")
  14. end
  15. minetest.log("action", "[MOD]"..oillamps.modname.." -- end loading ")