init.lua 299 B

123456789101112131415
  1. darkgen = darkgen or {}
  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)