mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-10-04 03:13:04 +02:00
sound tweaks
This commit is contained in:
parent
0d31ccfc66
commit
f6e0c45b15
12
init.lua
12
init.lua
@ -207,7 +207,7 @@ local function explode(pos, radius, sound)
|
|||||||
})
|
})
|
||||||
else
|
else
|
||||||
minetest.sound_play(sound, {pos = pos, gain = 1.0,
|
minetest.sound_play(sound, {pos = pos, gain = 1.0,
|
||||||
max_hear_distance = 32})
|
max_hear_distance = 32}, true)
|
||||||
|
|
||||||
entity_physics(pos, radius)
|
entity_physics(pos, radius)
|
||||||
|
|
||||||
@ -457,7 +457,7 @@ local lb_lightning = function(pos, digger, def)
|
|||||||
pos = pos,
|
pos = pos,
|
||||||
gain = 1.0,
|
gain = 1.0,
|
||||||
max_hear_distance = 25
|
max_hear_distance = 25
|
||||||
})
|
}, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -521,7 +521,7 @@ local lb_troll = function(pos, def)
|
|||||||
pos = pos,
|
pos = pos,
|
||||||
gain = 1.0,
|
gain = 1.0,
|
||||||
max_hear_distance = 10
|
max_hear_distance = 10
|
||||||
})
|
}, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not minetest.registered_nodes[nod] then
|
if not minetest.registered_nodes[nod] then
|
||||||
@ -543,7 +543,7 @@ local lb_troll = function(pos, def)
|
|||||||
pos = pos,
|
pos = pos,
|
||||||
gain = 1.0,
|
gain = 1.0,
|
||||||
max_hear_distance = 10
|
max_hear_distance = 10
|
||||||
})
|
}, true)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
@ -571,7 +571,7 @@ local lb_floor = function(pos, def)
|
|||||||
pos = pos,
|
pos = pos,
|
||||||
gain = 1.0,
|
gain = 1.0,
|
||||||
max_hear_distance = 10
|
max_hear_distance = 10
|
||||||
})
|
}, true)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
num = num + 1
|
num = num + 1
|
||||||
@ -733,7 +733,7 @@ minetest.register_node("lucky_block:super_lucky_block", {
|
|||||||
pos = pos,
|
pos = pos,
|
||||||
gain = 1.0,
|
gain = 1.0,
|
||||||
max_hear_distance = 10
|
max_hear_distance = 10
|
||||||
})
|
}, true)
|
||||||
|
|
||||||
if math.random(5) == 1 then
|
if math.random(5) == 1 then
|
||||||
pos.y = pos.y + 0.5
|
pos.y = pos.y + 0.5
|
||||||
|
Loading…
Reference in New Issue
Block a user