Swap

Swap v2

Image + Code

(to get the code click the link, RES won't show it)


This was an interesting spell, so I decided to give a go at optimizing it.

The original spell had a 2nd sleep trick in the lower right. Due to its placement, it was executed after all other tricks, which made it not really do anything. I removed it (along with anything else connected to it that wasn't needed), with no loss of spell functionality. This reduced complexity to 16, which means that a CAD with a Conductive CAD Core can cast it.

I further reduced complexity to 14 by letting two parts of the spell share the same Selector: Caster and Operator: Entity Position tiles. After some Psi Tetris, I managed to squeeze everything into 5 bandwidth, as well, so a CAD with a Basic CAD Socket can cast it.

Both this version of the spell and the original spell have a bit of a problem where the mined block is only sometimes sent to you. The original poster's spell had the tricks in the wrong order (tricks execute from top row to bottom row, left to right) so it makes sense that the original spell would be unreliable in that way, but I have no idea why this version of the spell has similar issues. I suppose that's a challenge for another Psientist to tackle. (...Hey, "Psientist" is an neat name for a person who uses Psi. /u/Vazkii, can that term be official? :P )

/r/psispellcompendium Thread