Place Line
imgur.com/a/mUkHBPosted Apr 13, 2016, 11:22 PM UTC
Posted Apr 13, 2016, 11:22 PM UTC
Tada: Behold, the same spell! But with bandwidth 4, complexity 10, and snazzy error supressor!
For the non-vector-literate: This spell places blocks in a line off the face you're pointing at, going until either 12 blocks or it hits another block, as long as there's something to hit within 32 blocks. So you can place the corner blocks of a frame, then fill the edges, then fill the face, without the dependence on caster position similar spells using Vector Projection tend to have.
I'm fairly certain I saw DireWolf use one that stops once it gets as far as the player would be if they were in line with it. That way you don't need to place all of the corners, just one.
That's the result you get if you use Vector Project. Some find one more useful, some the other; Vector Project doesn't require as much starting layout, but Place Line can place past you and from awkward directions, regardless of your position. Two different spells, really.
Thanks for the feedback. That really helps.
I attempted to use this spell today, and it gave me the error (after I removed the error suppression to see what happened) "ERROR: Spell Operation Vector is non existent or Null. Error Position: [6,4].
No blocks were placed, but my Psi energy was still consumed. Do you have any idea why it might give that message? Had been hoping to use this to help speed up making a mob trap in a skyblock map
This is not a Vector Project spell; it uses a secondary raycast.
This means that there must be something to hit on both ends of the row you're trying to fill. When you point the spell at a block, it checks from that face outwards to see how far to fill. However, if it can't find something to stop against, nothing is placed at all.
The error is caused when the secondary raycast, a line looking straight out of the face you cast the spell on, can't find anything soon enough.
For building flat surfaces, place the corner blocks and cast this on the inside faces of the corners. This should work for surfaces of 20*20 or larger, as long as you're close enough, as the spell fails if it tries to reach outside a 32-block radius sphere around your player (SoI1).
The "Vector Fallback" tile from an addon (I think it's named Psionic something) could potentially be used to fix this to some extent.
Nice, thanks man! So the vector magnitude part isn't needed? You can just use the vector as is?
Pretty much. The secondary raycast minus the primary raycast equals the free vector with the right magnitude and direction, no axis raycast multiplication shenanigans required.
Thank god for highschool maths.
Good job me for overthinking it like a chump :c I feel dumb now ;_;
Neat! This works well, and placing blocks isn't expensive Psi-wise. I might see if I can compact this a bit.
Nice! Yeah It's a bit wide, but it's cause I had to do three raycasts, and I didn't wanna use more than one selector and such.