mirror of
https://github.com/minetest-mods/lightning.git
synced 2024-11-15 23:00:42 +01:00
Use particle glow to brighten up the lightning.
This commit is contained in:
parent
d426c601b4
commit
39bd36cc17
2
init.lua
2
init.lua
|
@ -119,6 +119,8 @@ lightning.strike = function(pos)
|
|||
-- to make the texture lightning bolt hit exactly in the middle of the
|
||||
-- texture (e.g. 127/128 on a 256x wide texture)
|
||||
texture = "lightning_lightning_" .. rng:next(1,3) .. ".png",
|
||||
-- 0.4.15+
|
||||
glow = 14,
|
||||
})
|
||||
|
||||
minetest.sound_play({ pos = pos, name = "lightning_thunder", gain = 10, max_hear_distance = 500 })
|
||||
|
|
Loading…
Reference in New Issue
Block a user