init.lua 594 B

1234567891011121314151617181920212223242526
  1. mese_crystals = mese_crystals or {}
  2. mese_crystals.modpath = minetest.get_modpath("mese_crystals")
  3. mese_crystals.growtime = 60*5
  4. mese_crystals.longgrowtime = 60*30
  5. dofile(mese_crystals.modpath .. "/items.lua")
  6. dofile(mese_crystals.modpath .. "/tools.lua")
  7. dofile(mese_crystals.modpath .. "/mapgen.lua")
  8. dofile(mese_crystals.modpath .. "/crafting.lua")
  9. dofile(mese_crystals.modpath .. "/farming.lua")
  10. if not mese_crystals.run_once then
  11. local c = "mese_crystals:core"
  12. local f = mese_crystals.modpath .. "/init.lua"
  13. reload.register_file(c, f, false)
  14. mese_crystals.run_once = true
  15. end