[Mod]Lightning[lightning] (weather|environment|fire)

User avatar
New member
Posts: 8
Joined: Tue Dec 06, 2016 21:41
In-game: Ketjow3

Re: [Mod]Lightning[lightning] (weather|environment|fire)

by Ketjow3 » Tue Jul 30, 2019 10:09

Can You tell me how to enable lightning mod on server?
I have 5.01 Minetest x64 server on ubuntu 16.04 and mod is loaded properly but in game dont see any lightnings. Also have mod fire installed from tenplus1.
Please Help!

Lightning is working but after few hours of server working time. I don't know why but maybe it's releated to my cheap VPS and specs of it.
Mój Serwer: rodzinny.tk:30003 | My Server: rodzinny.tk:30003

User avatar
Posts: 285
Joined: Sat May 25, 2019 00:15
Location: United States

Re: [Mod]Lightning[lightning] (weather|environment|fire)

by FreeGamers » Tue Jul 30, 2019 16:49

@Ketjow3, is it listed in active mods when you type: "/mods"?

If so, it should just be a matter of time. It happens randomly. If you look at the init.lua file, you can see the parameters to set it to be more often. Look at lines 15 and 16. There are minimum and maximum range values you can adjust to your liking. If you want it to happen more often, just reduce the maximum interval between strikes.
https://github.com/minetest-mods/lightn ... r/init.lua

Code: Select all
lightning.strike = function(pos)
   if lightning.auto then
      minetest.after(rng:next(lightning.interval_low, lightning.interval_high), lightning.strike)

It looks like this mod simply picks an interval between the specified range as the timer for the next strike. It uses a random number generator (rng) to pick that interval
"i showed u my source code, pls respond"


Return to Mod Releases

Who is online

Users browsing this forum: Bing [Bot], zargulthewizard and 29 guests