several minor changes, flowing water now makes noise

This commit is contained in:
kaadmy 2015-09-30 16:10:06 -07:00
parent a01b319969
commit e4d52ba2ce
6 changed files with 25 additions and 5 deletions

View File

@ -50,6 +50,9 @@ testing_enable = false
hunger_enable = true
hunger_step = 2
# ambience noises
flowing_water_sounds = true
# server(user stuff)
max_users = 16
# player_transfer_distance = 1 DOES ANYBODY HAVE ANY IDEA WHAT THIS DOES

View File

@ -301,4 +301,21 @@ minetest.register_abm( -- weak torchs burn out and die after ~3 minutes
end
})
if minetest.setting_getbool("flowing_water_sounds") then
minetest.register_abm( -- river water makes gurgling noises
{
nodenames = {"group:flowing_water"},
interval = 1,
chance = 12,
action = function(pos, node)
minetest.sound_play(
"default_water",
{
pos = pos,
gain = 0.2,
})
end
})
end
default.log("functions", "loaded")

View File

@ -671,7 +671,7 @@ minetest.register_node(
liquid_alternative_source = "default:water_source",
liquid_viscosity = default.WATER_VISC,
post_effect_color = {a=90, r=40, g=40, b=100},
groups = {water=1, liquid=1},
groups = {water=1, flowing_water = 1, liquid=1},
})
minetest.register_node(
@ -735,7 +735,7 @@ minetest.register_node(
liquid_renewable = false,
liquid_range = 2,
post_effect_color = {a=40, r=40, g=70, b=100},
groups = {water=1, liquid=1},
groups = {water=1, flowing_water = 1, river_water = 1, liquid=1},
})
minetest.register_node(
@ -765,7 +765,7 @@ minetest.register_node(
liquid_renewable = false,
liquid_range = 2,
post_effect_color = {a=40, r=40, g=70, b=100},
groups = {water=1, liquid=1},
groups = {water = 1, river_water = 1, liquid = 1},
})
minetest.register_node(

View File

@ -36,7 +36,7 @@ if minetest.setting_getbool("music_enable") then
music.default_track,
{
pos = pos,
gain = 0.3,
gain = 0.8,
}),
["timer"] = 0,
["pos"] = pos,
@ -48,7 +48,7 @@ if minetest.setting_getbool("music_enable") then
music.default_track,
{
pos = pos,
gain = 0.3,
gain = 0.8,
})
end
end

Binary file not shown.