Merge pull request 'mapgen/mcl_mapgen_core: move set_node decorations a node callback' (#2028) from fix-nether-wart into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2028new_mapgen_api
commit
8e1a9e1785
|
@ -2179,15 +2179,17 @@ local function basic(vm, data, data2, emin, emax, area, minp, maxp, blockseed)
|
||||||
lvm_used = true
|
lvm_used = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return lvm_used, shadow
|
||||||
|
end
|
||||||
|
|
||||||
|
local function basic_node(minp, maxp, blockseed)
|
||||||
if mg_name ~= "singlenode" then
|
if mg_name ~= "singlenode" then
|
||||||
-- Generate special decorations
|
-- Generate special decorations
|
||||||
generate_underground_mushrooms(minp, maxp, blockseed)
|
generate_underground_mushrooms(minp, maxp, blockseed)
|
||||||
generate_nether_decorations(minp, maxp, blockseed)
|
generate_nether_decorations(minp, maxp, blockseed)
|
||||||
generate_structures(minp, maxp, blockseed, biomemap)
|
generate_structures(minp, maxp, blockseed, minetest.get_mapgen_object("biomemap"))
|
||||||
end
|
end
|
||||||
|
|
||||||
return lvm_used, shadow
|
|
||||||
end
|
end
|
||||||
|
|
||||||
mcl_mapgen_core.register_generator("main", basic, nil, 1, true)
|
mcl_mapgen_core.register_generator("main", basic, basic_node, 1, true)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue