**Not a member of Pastebin yet?**

**, it unlocks many cool features!**

__Sign Up__- AntimatterMass being 0.125 or 1
- Antimatter energy = (2,000,000,000,000,000 + 18,000,000,000,000,000 * (AntimatterMass))
- 125mg energy = 4,250,000,000,000,000
- 1g energy = 20,000,000,000,000,000
- fulmination voltage = 10,000,000,000 (doesnt matter tbh)
- fulmination max energy maybe = 10,000,000,000,000
- if antimatter explosion distance from fulmination gens is
- bigger than 1 meter (aka 1 block away), then no power it made for it
- 125mg. otherwise, a cube around the area is made with all other fulmination generators that could generate power. ones that dont touch dont make power even if they're in that cube.
- antimatter explosionRadius = 12
- 100 fulmination gens as a 5x5 cube hollow inside but 2 sticking up from bottom center as a platform for the antimatter
- total maxEnergyPerGenerator = 4,250,000,000,000,000 / 100(number of generators) = 42,500,000,000,000
- distances is taken into account...
- distance is calculated from 2 vectors. it's the magnitude of vec1 - vec2
- so far left gen distance = 2 blocks away, so say the pos of the fulmination gen is (2,0,0) and the antimatter position is (0,0,0), distance is (2,0,0) - (0,0,0) which is calculated via ((2-0), (0-0), (0-0)). then the magnitude being sqrt(x * x + y * y + z * z). the distance can be shrunk down to just 2 so sqrt(2*2) = 2
- the block below is 1 block away so sqrt(11) == 1, 3 block awaw = sqrt(3*3) = 3
- but, if it's 2 blocks below and 1 left, it's (1,2,0), so sqrt(1x1 + 4x4 + 0x0) == sqrt(17) = 4.1
- min being a funtion to return the smallest value between the 2 given values, so min(2,5) returns 2, min(25, 22) returns 22.
- fulminationEnergy = min(maxEnergyPerGenerator, (maxEnergyPerGenerator / distance / explosionRadius)
- == (4,250,000,000,000,000 / 1 / 12) == 354,166,666,666,667 joules, or 354,166,667MJ. multiply by 10 for MJ to RF conversion = 3.5 billion rf, so 10kirf/t transfered means it lasts about 5 hours for a single fulm gen

RAW Paste Data