Create energy.lua