Since there is no such thing as "electricity" here in dreams, we have to utilize the power of WISHES! Yes, WISHES! Maybe with enough wishes we could attain the power to launch our rainbow cannon.
Well, not all stars could grant such wishes, maybe some. That's maybe why it took a couple of tries