mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-12 09:22:26 -04:00
Fix player.lua, lava not spreading, add canyons
Just what it says on the tin. Canyons originally by paramat, edited to use moon terrain materials.
This commit is contained in:
parent
42a40d8ef0
commit
489e69b6c8
6 changed files with 199 additions and 2 deletions
|
@ -86,4 +86,25 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||
vm:set_lighting({day=0, night=0})
|
||||
vm:calc_lighting()
|
||||
vm:write_to_map(data)
|
||||
end)
|
||||
end)
|
||||
|
||||
--make lava delete vacuum nodes nearby so as to allow flowing
|
||||
minetest.register_abm({
|
||||
nodenames = {"group:lava"},
|
||||
neighbors = {"moontest:vacuum"},
|
||||
interval = 1.0,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
for x = -1,1 do
|
||||
for y = -1,1 do
|
||||
for z = -1,1 do
|
||||
n_pos = {x=x + pos.x,y=y+pos.y,z=z+pos.z}
|
||||
n_name = minetest.get_node(n_pos).name
|
||||
if n_name == "moontest:vacuum" then
|
||||
minetest.remove_node(n_pos)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue