Add biomegen to test mg
This commit is contained in:
parent
e6324c229a
commit
8a82953e5d
|
@ -1,6 +1,3 @@
|
||||||
--minetest.register_on_mapgen_init(function(mgparams)
|
|
||||||
-- minetest.set_mapgen_params({mgname="singlenode", flags="nolight", flagmask="nolight"})
|
|
||||||
--end)
|
|
||||||
mmgen_mytest = {}
|
mmgen_mytest = {}
|
||||||
--multi_map.register_global_3dmap(
|
--multi_map.register_global_3dmap(
|
||||||
-- "terrain",
|
-- "terrain",
|
||||||
|
@ -36,7 +33,7 @@ function mmgen_mytest.generate(current_layer, vm, a, data, minp, maxp, offset_mi
|
||||||
if yy < 1 then
|
if yy < 1 then
|
||||||
data[vi] = c_stone
|
data[vi] = c_stone
|
||||||
else
|
else
|
||||||
data[vi] = c_grass
|
data[vi] = c_stone
|
||||||
end
|
end
|
||||||
elseif yy < 1 then
|
elseif yy < 1 then
|
||||||
local vi = a:index(x, y, z)
|
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
|
end
|
||||||
end
|
end
|
||||||
|
biomegen.generate_all(data, a, vm, minp, maxp, seed)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
name = multi_map_generators
|
name = multi_map_generators
|
||||||
description = example mapgens for multi_map
|
description = example mapgens for multi_map
|
||||||
depends = mcl_core, multi_map_core
|
depends = mcl_core, mcl_init, mcl_mapgen_core, multi_map_core, biomegen
|
||||||
|
|
Loading…
Reference in New Issue