X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=mods%2Fdefault%2Ffunctions.lua;h=fd759275d9e340c7c60e1fa48f94dc09a9005484;hb=835ca02be5f0c37b4aedea13a7480beb5e9bb69e;hp=426e27c46eaf0a6e8566c8999c69a79c3d72abb2;hpb=f92d49feffd91831e77311215c6d7102262b022e;p=oweals%2Fminetest_game.git diff --git a/mods/default/functions.lua b/mods/default/functions.lua index 426e27c4..fd759275 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -90,19 +90,21 @@ end default.cool_lava_source = function(pos) minetest.set_node(pos, {name = "default:obsidian"}) - minetest.sound_play("default_cool_lava", {pos = pos, gain = 0.25}) + minetest.sound_play("default_cool_lava", + {pos = pos, max_hear_distance = 16, gain = 0.25}) end default.cool_lava_flowing = function(pos) minetest.set_node(pos, {name = "default:stone"}) - minetest.sound_play("default_cool_lava", {pos = pos, gain = 0.25}) + minetest.sound_play("default_cool_lava", + {pos = pos, max_hear_distance = 16, gain = 0.25}) end minetest.register_abm({ nodenames = {"default:lava_flowing"}, neighbors = {"group:water"}, interval = 1, - chance = 1, + chance = 2, action = function(...) default.cool_lava_flowing(...) end, @@ -112,7 +114,7 @@ minetest.register_abm({ nodenames = {"default:lava_source"}, neighbors = {"group:water"}, interval = 1, - chance = 1, + chance = 2, action = function(...) default.cool_lava_source(...) end, @@ -328,7 +330,7 @@ minetest.register_abm({ }) minetest.register_abm({ - nodenames = {"default:dirt_with_grass"}, + nodenames = {"default:dirt_with_grass", "default:dirt_with_dry_grass"}, interval = 2, chance = 20, action = function(pos, node)