# How much EU/t does the lightning rod produce?

Hey I was wondering if anyone has done some math or some testing to find a rough estimate for the EU/t produced by the lightning rod? Assuming no sleeping to break weather and averaged over long periods of time of course.

3 Likes

I dont think I can reliably answer this one, because not only would i need to calculate the randomness of weather, but also for how long the weather lasts overall. And I dont know either if those values.

Anyone else know this one more precisely?

3 Likes

Yeah I tried to figure those values out but from the extremely limited information on Minecraft wiki you get something like 0.5 - 1 day duration with 0.5 - 7.5 day pause between rainstorms. Assuming it follows a normal distribution: 0.75day/4.75days (delay+duration) = 15.8% uptime on rain. Minecraft wiki also gives a figure for the rate of lightning strikes 1/100000 / tick / chunk. Problem is thereâs no figure that I could find for how often rain becomes thunderstormâŚ However I also donât know how the lightning rod itself works, does it check for lightning within a certain amount of blocks? If thatâs thecase how does it work in rain at supposed 10% efficiency?

Assuming something like 10% of rainstorms are thunderstorms (conservative guess I think) there will be thunder once every 66 Minecraft days or every 22hours, and assuming the rod checks 1 chunk for 0.75 days (18000 ticks) we get 500mil EU every 121 hours or 57EU/t. In the case where 50% of rainstorms are thunderstorms we get 285 EU/t. In any case depends heavily on the mechanics of the lightning rod. (All assuming it just checks its own chunk for lightning strikes)

Can you tell me what calculations the rod performs ?

2 Likes

Maybe you should read the changelog entry on the lightning rod for the actual calculations and mechanics

1 Like

I mean I thought I already had? To me it doesnât look like you described exactly how it counts lightning strikes you just say â600 mil eu per lightning strikeâ and 1% chance per rod block. None of that makes any sense without knowing the area its checking for lightning strikes? Or is if itâs chance based is it chance/tick whatâs the deal?

2 Likes

Your Screenshot literally contains the entire description of what the Lightning Rod does. Why do you insist on the thing scanning for Lightning? That doesnât make any sense. That would mean you could just spawn Lightning Strikes with a Mod and generate infinite power which would be OP as fuck.

https://git.gregtech.overminddl1.com/GregTech-6/GT6/src/branch/master/src/main/java/gregtech/tileentity/multiblocks/MultiTileEntityLightningRod.java#L122-L150

1 Like

No it doesnât lol I just read your code, itâs not obvious from the changelog that the lightning rod literally just uses itâs own random generator and only cares about the state of the weather, like your code literally generates lightning strikes for aesthetic purposes and then adds 600 mil EU to its buffer. Your description is a bunch of conditions for making it work and something about itâs efficiency but it doesnât describe the base of the randomness:

This is not stated anywhere that the randomness is 1 in 10k per tick using 100 rod length or 1 in 100k per tick in rain. Also the diminishing return function on multiple rods increases the tcount variable by 1 for each additional rod within radius 256 but it starts at 1 so the rng(1) is a 50/50 baseline ? So I guess the optimal efficiency is 1 in 20k per tick for thunder 1 in 200k per tick for rain. So 30k EU/t in thunder 3k EU/t in rain (not account for time it takes to drain the rod (max speed 58 seconds roughly?)).

So if ignoring thunder (cus i have no number for thunder) it generates ~450EU/t

At 10% thunder it would produce ~490EU/t
At 20% ~970EU/t
At 50% ~2360EU/t

Honestly man I donât see how itâs obvious that the rod produces lightning itself and is just tick based randomness when your description is âEmitting almost 600 million EU per Lightning strikeâŚâ and âWhile the Rod is still containing Power it will not let more Lightning strikes happen to itselfâ , the âHappen to itselfâ really makes it sound like thereâs external forces at work I would not have known it if I hadnât read the code

2 Likes

rng(1) always returns 0 no matter what. rng(2) would be 50:50

1 Like

Alright fair

So if ignoring thunder (cus i have no number for thunder) it generates ~900EU/t

At 10% thunder it would produce ~980EU/t
At 20% ~1940EU/t
At 50% ~4720EU/t

Thatâs actually probably pretty decent

2 Likes

I love mathy threads. ^.^

1 Like

Applies standard arithmetic

3 Likes