init.lua 338 B

123456789101112131415
  1. if not minetest.global_exists("darkgen") then darkgen = {} end
  2. darkgen.modpath = minetest.get_modpath("darkgen")
  3. darkgen.SHEET_HEIGHT = 20
  4. dofile(darkgen.modpath .. "/noise.lua")
  5. dofile(darkgen.modpath .. "/mapgen.lua")
  6. -- Register the mapgen callback.
  7. minetest.register_on_generated(function(...)
  8. darkgen.generate_realm(...)
  9. end)