File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 90
90
91
91
default .cool_lava_source = function (pos )
92
92
minetest .set_node (pos , {name = " default:obsidian" })
93
- minetest .sound_play (" default_cool_lava" , {pos = pos , gain = 0.25 })
93
+ minetest .sound_play (" default_cool_lava" ,
94
+ {pos = pos , max_hear_distance = 16 , gain = 0.25 })
94
95
end
95
96
96
97
default .cool_lava_flowing = function (pos )
97
98
minetest .set_node (pos , {name = " default:stone" })
98
- minetest .sound_play (" default_cool_lava" , {pos = pos , gain = 0.25 })
99
+ minetest .sound_play (" default_cool_lava" ,
100
+ {pos = pos , max_hear_distance = 16 , gain = 0.25 })
99
101
end
100
102
101
103
minetest .register_abm ({
102
104
nodenames = {" default:lava_flowing" },
103
105
neighbors = {" group:water" },
104
106
interval = 1 ,
105
- chance = 1 ,
107
+ chance = 2 ,
106
108
action = function (...)
107
109
default .cool_lava_flowing (... )
108
110
end ,
@@ -112,7 +114,7 @@ minetest.register_abm({
112
114
nodenames = {" default:lava_source" },
113
115
neighbors = {" group:water" },
114
116
interval = 1 ,
115
- chance = 1 ,
117
+ chance = 2 ,
116
118
action = function (...)
117
119
default .cool_lava_source (... )
118
120
end ,
You can’t perform that action at this time.
0 commit comments