mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-29 22:11:10 +01:00
Make lightning glow in the dark
This commit is contained in:
parent
ba97dfd02f
commit
c6e671376d
1 changed files with 1 additions and 0 deletions
|
@ -117,6 +117,7 @@ lightning.strike = function(pos)
|
||||||
-- to make the texture lightning bolt hit exactly in the middle of the
|
-- to make the texture lightning bolt hit exactly in the middle of the
|
||||||
-- texture (e.g. 127/128 on a 256x wide texture)
|
-- texture (e.g. 127/128 on a 256x wide texture)
|
||||||
texture = "lightning_lightning_" .. rng:next(1,3) .. ".png",
|
texture = "lightning_lightning_" .. rng:next(1,3) .. ".png",
|
||||||
|
glow = minetest.LIGHT_MAX,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.sound_play({ pos = pos, name = "lightning_thunder", gain = 10, max_hear_distance = 500 })
|
minetest.sound_play({ pos = pos, name = "lightning_thunder", gain = 10, max_hear_distance = 500 })
|
||||||
|
|
Loading…
Reference in a new issue