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

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

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

by Ketjow3 » Post

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!

Edit:
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
FreeGamers
Member
Posts: 627
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

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

by FreeGamers » Post

@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)
end
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

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 11 guests