mirror of
https://github.com/minetest-mods/lightning.git
synced 2025-01-09 01:10:20 +01:00
Use mod.conf for dependencies and description
This commit is contained in:
parent
2183978c6f
commit
01f2b9c89d
@ -1,2 +0,0 @@
|
|||||||
default?
|
|
||||||
fire?
|
|
@ -1 +0,0 @@
|
|||||||
A mod that adds thunder and lightning effects.
|
|
4
init.lua
4
init.lua
@ -63,7 +63,7 @@ local function choose_pos(pos)
|
|||||||
|
|
||||||
local r = rng:next(1, playercount)
|
local r = rng:next(1, playercount)
|
||||||
local randomplayer = playerlist[r]
|
local randomplayer = playerlist[r]
|
||||||
pos = randomplayer:getpos()
|
pos = randomplayer:get_pos()
|
||||||
|
|
||||||
-- avoid striking underground
|
-- avoid striking underground
|
||||||
if pos.y < -20 then
|
if pos.y < -20 then
|
||||||
@ -232,4 +232,4 @@ minetest.after(5, function()
|
|||||||
minetest.after(rng:next(lightning.interval_low,
|
minetest.after(rng:next(lightning.interval_low,
|
||||||
lightning.interval_high), lightning.strike)
|
lightning.interval_high), lightning.strike)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
Loading…
Reference in New Issue
Block a user