planetoids/mapgen.lua

18 lines
365 B
Lua
Raw Normal View History

2018-10-31 02:47:44 -07:00
2018-06-20 09:06:48 -07:00
minetest.register_on_generated(function(minp, maxp, seed)
2018-08-23 04:58:35 -07:00
-- default from 6k to 10k
if minp.y < planetoids.miny or minp.y > planetoids.maxy then
2018-06-20 09:06:48 -07:00
return
end
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
local area = VoxelArea:new{MinEdge=emin, MaxEdge=emax}
2019-05-08 10:06:25 -07:00
planetoids.mapgen_oreplanet(minp, maxp, vm, area)
2018-06-20 09:06:48 -07:00
vm:write_to_map()
end)