I just did the math.
Only gather necessary Electrified Wood and Sturdy Bolts until the Spark Flowers, receptively, the Sparking Rock are needed. That to optimize energy consumption:
1) Gather 360 Electric Wood before Chapter 6
2) Gather 230 Bolts before Chapter 9
3) Craft 8 Electric Block before chapter 6, 10 Block before Chapter 9
It is not worth to collect to much in advance or you will need much more energy in the last 2 chapters. Moreover, crafting the Mothmonster should be done before chapter 9.