init.lua 610 B

12345678910111213141516171819202122
  1. nethermapgen = nethermapgen or {}
  2. nethermapgen.modpath = minetest.get_modpath("nethermapgen")
  3. nethermapgen.NETHER_START = -25000
  4. nethermapgen.BRIMSTONE_OCEAN = -30800
  5. nethermapgen.BEDROCK_DEPTH = -30900
  6. dofile(nethermapgen.modpath .. "/override.lua")
  7. dofile(nethermapgen.modpath .. "/noise.lua")
  8. dofile(nethermapgen.modpath .. "/functions.lua")
  9. dofile(nethermapgen.modpath .. "/oregen.lua")
  10. -- The mapgen function & voxel manipulator code.
  11. dofile(nethermapgen.modpath .. "/mapgen.lua")
  12. -- Register the mapgen callback.
  13. minetest.register_on_generated(function(...)
  14. nethermapgen.generate_realm(...)
  15. end)