dark basalt texture
parent
b65f7e30d3
commit
347fe695ce
9
init.lua
9
init.lua
|
@ -57,10 +57,10 @@ minetest.register_abm ({
|
|||
for i=-1,1,2 do
|
||||
if minetest.env: get_node({x=pos.x+i, y=pos.y, z=pos.z}).name == water
|
||||
or minetest.env: get_node({x=pos.x, y=pos.y+i, z=pos.z}).name == water
|
||||
or minetest.env: get_node({x=pos.x, y=pos.y, z=pos.z+i}).name == water
|
||||
then
|
||||
minetest.env: add_node (pos, {name = output})
|
||||
minetest.sound_play("lavacooling", {pos = pos, gain = 1.0, max_hear_distance = 5})
|
||||
or minetest.env: get_node({x=pos.x, y=pos.y, z=pos.z+i}).name == water then
|
||||
minetest.env: add_node (pos, {name = output})
|
||||
minetest.sound_play("lavacooling", {pos = pos, gain = 1.0, max_hear_distance = 5})
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -83,6 +83,7 @@ minetest.register_abm ({
|
|||
if minetest.env: get_node({x=pos.x, y=pos.y+1, z=pos.z}).name == lava then
|
||||
minetest.env: add_node (pos, {name = "default:stone"})
|
||||
minetest.sound_play("lavacooling", {pos = pos, gain = 1.0, max_hear_distance = 5})
|
||||
return
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 2.8 KiB |
Loading…
Reference in New Issue