Woot PowerCalc - Ipsis/Woot GitHub Wiki
Woot Power Calculations And Configuration
Tracing
To enable the power calculation debug:
/woot dev debug powercalc
To disable the power calculation debug:
/woot dev debug !powercalc
Configuration
There are various configuration values that can be changed. These can be set on a global basis or configuration on a per-mob basis.
Global values are set in woot.cfg.
Per-mob values are set in factory_config.json.
Calculation
There are three parts that go into the power calculation:
- The power cost of running the factory
- The power cost of running the upgrades
- The power cost of spawning the mobs
How fast you are spawning the mobs will determing the power cost per tick. The faster you want to spawn, the higher the power cost per tick.
Spawn ticks is the base number of ticks that it will take to spawn the mob. For example this default to 320 ticks, but the Ender Dragon value is set to 12000. This is used for the power cost calculation. The rate upgrade is only applied after the power costs calculation is finished.
Factory Power Cost (factoryCost)
factoryCost = power per tick for the tier * spawn ticks
Upgrade Power Cost (upgradeCost)
for each upgrade upgradeCost += power per tick for the upgrade * spawn ticks
The efficiency upgrade has no power cost.
Mob Power Cost (mobCost)
Each extra mob that is generated by the mass upgrade increases the power cost of the factory. This scales in various ways depending on that mob configuration.
- linear - each extra mob costs the same as the last
- base2 - each extra mob costs two times that of the last
- base3 - each extra mob costs three times that of the last
Example 1: Blaze 6400RF for each mob (Rate 0-320 ticks, 3-80 ticks)
f(x) | Mass | RF/tick | @Rate III RF/tick |
---|---|---|---|
linear | 1 | 260 | 2000 |
linear | 2 | 360 | 3000 |
linear | 4 | 400 | 3200 |
linear | 6 | 440 | 3400 |
Example 2: Wither 600000RF for each mob (Rate 0-1200 ticks, 3-300 ticks)
f(x) | Mass | RF/tick | @Rate III RF/tick |
---|---|---|---|
base2 | 1 | 820 | 4200 |
base2 | 2 | 1900 | 9200 |
base2 | 3 | 3900 | 17200 |
base2 | 4 | 7900 | 33200 |
As the mob cost gets larger, applying a mass upgrade can get very expensive on a per tick basis. It can get disgustingly expensive when you combine it with a rate upgrade.
Final Calculation
TotalPower = factoryCost + upgradeCost
TotalPower -= efficiency upgrade saving percentage
FinalSpawnTick = spawn ticks - rate upgrade
Power Per Tick = TotalPower/FinalSpawnTick