Remove lava
This commit is contained in:
parent
41c8780410
commit
a7427568c7
6
init.lua
6
init.lua
@ -67,7 +67,6 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
}
|
}
|
||||||
local data = vm:get_data()
|
local data = vm:get_data()
|
||||||
local c_stone = minetest.get_content_id("default:stone")
|
local c_stone = minetest.get_content_id("default:stone")
|
||||||
local c_lava = minetest.get_content_id("default:lava_source")
|
|
||||||
local dist = 3
|
local dist = 3
|
||||||
|
|
||||||
-- Loop through
|
-- Loop through
|
||||||
@ -80,14 +79,11 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
data[vi] = c_stone
|
data[vi] = c_stone
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif minp.y <= -20 then
|
elseif minp.y <= -30 then
|
||||||
for y = minp.y, maxp.y do
|
for y = minp.y, maxp.y do
|
||||||
if y <= -30 then
|
if y <= -30 then
|
||||||
local vi = a:index(x, y, z)
|
local vi = a:index(x, y, z)
|
||||||
data[vi] = c_stone
|
data[vi] = c_stone
|
||||||
elseif y <= -20 then
|
|
||||||
local vi = a:index(x, y, z)
|
|
||||||
data[vi] = c_lava
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user