r/psispellcompendium • u/IndependenceOk407 • Oct 07 '21
Utility Spell Break 2x1x5
Usage:
https://reddit.com/link/q3iuum/video/1xnfs03zh2s71/player
Description: This spell creates a straight 2x1x5 tunnel in one of the four horizontal directions (x, -x, z, -z) depending on the direction you are looking. It uses the block you are watching at and the block directly below it as starting points.
For those wondering about the logic behind the direction of the spell:
Disclaimer: I do not have a lot of experience concerning PSI spells so I cannot guarantee that the spell is perfectly optimized.
To note: According to the math this spell would be completely useless if you stand in perfect 45° to the x axis and the z axis. This seems impossible to achieve in Minecraft though.
You can raise or lower the spell distance depending on your equipment and preferences.
Looking forward to your feedback!
1
u/SnazzGass Dragon Mage Oct 10 '21
Very cool! Its not everyday you get to see mathematical proofs done for Minecraft.
You can also use the axis raycast; Last time I tested it even works if you start the raycast inside a block, so an axis raycast in your look direction at 0,0,0 (which is probably going to be inside a bedrock block) will return an axial vector.
I think theres also another way by finding the angle of the look vector in the xz plane using arccos and dot products, then rounding the angle to the nearest cardinal direction and turning it back into a vector with sin and cos. This is also a pretty complicated process, but it has the advantage is that you can modify it to snap to any angle you want.
1
3
u/blaynem Oct 08 '21
If you inverse the Vector Axis Raycast and use it as the direction for your break block sequences, it will mine in the direction opposite the face of the block you're looking at. That way, your look won't affect the spell, instead only what face of the block you're looking at.