Temporary biome fix

This commit is contained in:
Olive 2022-09-18 10:29:29 +01:00
parent 88ab7e4557
commit 1a82a65bad
1 changed files with 7 additions and 8 deletions

View File

@ -1,15 +1,14 @@
if minetest.get_mapgen_params().mgname == "singlenode" then
local ground_level = tonumber(minetest.settings:get("water_level") or 1)
local air = minetest.get_content_id("air")
local stone = minetest.get_content_id("minecraft:stone")
local grass = minetest.get_content_id("minecraft:grass")
minetest.register_on_generated(function(minp, maxp, blockseed)
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
local va = VoxelArea:new({MinEdge=emin, MaxEdge=emax})
local air = minetest.get_content_id("air")
local stone = minetest.get_content_id("minecraft:stone")
local grass = minetest.get_content_id("minecraft:grass")
local nodes = vm:get_data()
for i, _ in pairs(nodes) do
@ -27,12 +26,12 @@ if minetest.get_mapgen_params().mgname == "singlenode" then
vm:write_to_map()
end)
else
-- FIXME: Why dosen't node_top work properly?
minetest.register_biome({
name = "cavegame",
-- node_dust = "air",
node_top = "minecraft:grass",
depth_top = 1,
-- depth_filler = 1,
node_dust = "minecraft:grass",
-- node_top = "minecraft:grass",
-- depth_top = 1,
node_stone = "minecraft:stone",
heat_point = 50,
humidity_point = 50,