Temporary biome fix
This commit is contained in:
parent
88ab7e4557
commit
1a82a65bad
|
@ -1,15 +1,14 @@
|
||||||
|
|
||||||
if minetest.get_mapgen_params().mgname == "singlenode" then
|
if minetest.get_mapgen_params().mgname == "singlenode" then
|
||||||
local ground_level = tonumber(minetest.settings:get("water_level") or 1)
|
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)
|
minetest.register_on_generated(function(minp, maxp, blockseed)
|
||||||
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
|
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
|
||||||
local va = VoxelArea:new({MinEdge=emin, MaxEdge=emax})
|
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()
|
local nodes = vm:get_data()
|
||||||
|
|
||||||
for i, _ in pairs(nodes) do
|
for i, _ in pairs(nodes) do
|
||||||
|
@ -27,12 +26,12 @@ if minetest.get_mapgen_params().mgname == "singlenode" then
|
||||||
vm:write_to_map()
|
vm:write_to_map()
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
|
-- FIXME: Why dosen't node_top work properly?
|
||||||
minetest.register_biome({
|
minetest.register_biome({
|
||||||
name = "cavegame",
|
name = "cavegame",
|
||||||
-- node_dust = "air",
|
node_dust = "minecraft:grass",
|
||||||
node_top = "minecraft:grass",
|
-- node_top = "minecraft:grass",
|
||||||
depth_top = 1,
|
-- depth_top = 1,
|
||||||
-- depth_filler = 1,
|
|
||||||
node_stone = "minecraft:stone",
|
node_stone = "minecraft:stone",
|
||||||
heat_point = 50,
|
heat_point = 50,
|
||||||
humidity_point = 50,
|
humidity_point = 50,
|
||||||
|
|
Loading…
Reference in New Issue