cray transferring its life to the elements it creates might be a thing someday.
as for your ray particle, here's a mod for it; https://github.com/boxmein/The-Powder-Toy/tree/eray/
bit.bor(elem.ERAY_TYPE_BIT, elem.ERAY_LIFE_BIT, ...). Alternatively adding the numbers together which were in the linked file works too.