Add biomegen to test mg

This commit is contained in:
cora 2022-03-25 16:21:55 +01:00
parent e6324c229a
commit 8a82953e5d
2 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,3 @@
--minetest.register_on_mapgen_init(function(mgparams)
-- minetest.set_mapgen_params({mgname="singlenode", flags="nolight", flagmask="nolight"})
--end)
mmgen_mytest = {}
--multi_map.register_global_3dmap(
-- "terrain",
@ -36,7 +33,7 @@ function mmgen_mytest.generate(current_layer, vm, a, data, minp, maxp, offset_mi
if yy < 1 then
data[vi] = c_stone
else
data[vi] = c_grass
data[vi] = c_stone
end
elseif yy < 1 then
local vi = a:index(x, y, z)
@ -46,4 +43,5 @@ function mmgen_mytest.generate(current_layer, vm, a, data, minp, maxp, offset_mi
end
end
end
biomegen.generate_all(data, a, vm, minp, maxp, seed)
end

View File

@ -1,3 +1,3 @@
name = multi_map_generators
description = example mapgens for multi_map
depends = mcl_core, multi_map_core
depends = mcl_core, mcl_init, mcl_mapgen_core, multi_map_core, biomegen