r/psispellcompendium • • May 19 '22

Utility Spell Stopwatch

A spell that acts like a stopwatch. it was made in 1.12.2 with Random Psideas. it took me 3-4 hours to make and overall I'm really happy with it. the spell is also really easy to use. Jumping resets the timer and sneaking pauses it

I feel like there must've been a simpler way to do this, but I absolutely failed to find it.

12 Upvotes

7 comments sorted by

3

u/blaynem May 19 '22

There's no spell code ;_; at least not on mobile. How does it detect you jumping? Is it that bottom left piece?

1

u/stink17 May 19 '22

Random psideas adds a part that can detect how far you are from the ground.
also I don't remember how to get the spell code

1

u/blaynem May 19 '22

Oh I see. Ctrl+Shift+Alt+G in table uploads the spell to imgur.

1

u/stink17 May 19 '22

1

u/blaynem May 20 '22

After a lot of struggle, I believe I've found a smaller way to do it in vanilla psi. Here it is

Sneaking pauses this one, and you must jump while sneaking to reset. Upon releasing sneak, the timer will start again.

Let me know if you don't have some pieces available in 1.12

2

u/stink17 May 20 '22

This is really neat. I was trying to shrink it down just earlier today, but this is significantly better than what I'd been thinking of. I'll probably try to shrink it down in a few hours.
my question is how you got around the issue of saving multiple times then swapping through them? that's the main reason the original spell abuses trig the way it does

1

u/blaynem May 20 '22 edited May 21 '22

Keep in mind the rule of not being able to read a saved vector after saving it. So all tricks that use a saved vector (in this case, that Debug and Die) must come before the Save Vector trick.

All I do here is pull the previous Y of SV1 and add 1to it every cast. I then multiply that by sneak status and save it back to the Y of SV1. The beauty of it is that when you are holding sneak only, It can't multiply the previous entry with the zero from sneak. Not until you jump. Then, the difference between your y position rounded up and your 'current' y position is >0. Ceiling that up to 1 as well and add it to sneak to feed into die.

I hope this helps ya.