In this talk, we present our algorithm for energy distribution in programmable matter that is loosely inspired by the growth behavior of Bacillus subtilis bacterial biofilms. As a supporting but independent result, we extend the amoebot model’s well-established spanning forest primitive so that it self-stabilizes in the presence of crash failures. We conclude by showing how this self-stabilizing primitive can be leveraged to compose our energy distribution algorithm with existing amoebot model algorithms, effectively generalizing previous work to also consider energy constraints.