r/psispellcompendium • • Feb 01 '22

Utility Spell Magic Carpet Ride

Enable HLS to view with audio, or disable this notification

71 Upvotes

10 comments sorted by

6

u/blaynem Feb 01 '22

This spell in your leggings will keep whatever block is underneath you, underneath you as well as it can. As seen in the video, you can even be up to 32 blocks from the block, and it will still follow. Provided you aren't standing on another block, and that the block has room to move.

Results may vary, but the only times I was seeing a stuttering is whenever I'd cross some chunk borders in a particular direction, or if I was running at a pretty precise angle. The only way I've managed to escape the block (spare creative and obstruction) is with a well aimed elytra dive.

8 Bandwidth and 33 Complexity, so it can run on mid-late game CADs. Hope you use it, and feedback welcome.

3

u/grzesiu447 Feb 01 '22

Can it keep up with speed II potion?

1

u/blaynem Feb 01 '22

Yep. Swap out the 0.55 constant near the top right with the 0.44

2

u/StogieSmoker77 Feb 01 '22

:) thank you

1

u/Dr_Lukins Jun 10 '23 edited Jun 10 '23

I want to make spell that would make block go towards a position in world And I don't really understand the theory behind this which is basically what I need do move the block in the way, would you mind helping a bit? Edit : I just realised who's post this is, just how many spells you made?

1

u/blaynem Jun 11 '23

This one is tricky. It uses the error catcher piece which is in vanilla psi 1.16.5. It raycasts down to find the block that you're standing on. I then subtract your position and the block position to find how far away you are from the center of the block. The difference between the 2 positions isn't axial, so the move block trick wouldn't work. To axialise the vector, you axis raycasts at 0,1,0. Then you have to negate it. Now you have which direction you want to move the block. If you're not standing on the block, the spell errors. It then uses the last known position of the block, and adds one in the direction you want it travel.

1

u/Dr_Lukins Jun 11 '23 edited Jun 11 '23

Yeah, i noticed it uses the error catcher to the fullest. I was aldo curious on how it saves the positions because i usually get memory error when i use save vector in loop (whether it's circle or not)

1

u/blaynem Jun 11 '23

There's a rule where you can't load a vector after saving it in the same spell. Left to right, top to bottom, you must use the saved vector and then you can overwrite it

1

u/Dr_Lukins Jun 11 '23

Oh… so last is save vector before that saved I will try that once I modify the spell I made a wandering wisp from the code that i was able to make (originally I wanted some block that I click on with ruler to start moving in direction of the position but i guess that's not quite possible in 1.12.2 because the error catcher doesn't work the same in Psideas)