Some older useful spells from the akashic archives
Posted: Fri Dec 09, 2022 5:58 am
I felt it useful to have these older ones here, too. I did not write all or even most of these.
Kirin's Knitting Needle
sneaking spell, standing spell → spell
(KirinDave)
I've taken the trouble to transcribe my compiler for sneak trinkets. This makes it very easy to turn any pair of spells into a sneak trinket spell. It's written with simplicity of writing and use in mind.
To use this spell, put your "sneak" spell on the stack, then put your "standing" spell on the stack. Then put this spell on the stack, and call hermes. What's left on the stack is a compiled spell that is suitable for writing to a cypher, artifact, trinket, or spellbook (for use with CAD) that will cast the sneak spell while you're sneaking and the standing spell otherwise.
You cannot use this spell inside a trinket or cypher or whatever without extra work, but that is possible assuming you want to read the spells from foci dropped on the ground. I leave that version as an exercise for the hexxer.
I've written it inside an intro/retro pair to make sure to call out that you need to write consideration 4 times in a row.
The code is as follows:
If Pekhui is available, this change accommodates it.
Kirin's Ruler
(KirinDave)
This is a spell that I use to construct "vector fields". Vector fields are just points in space relative to [0,0,0]. This is very useful when you want to do something repetitive at a point in space but you don't know where that point in space is yet. For example, you might want to raycast to farmland and grow it it in a 3x3 space, or conjure a bubble of blocks around a monster.
To use this spell, put it in a trinket (you cannot use it via a CAD trinket from a spellbook!), then:
1. Put an empty list in a focus and hold it in offhand.
2. Place your Sentinel (normal is fine) somewhere. That is [0,0,0].
3. Right click the trinket on a block relative to the sentinel, it will be added to the focus's list.
4. Duplicates will be removed, so don't worry about accidentally clicking part of your world twice.
Remember, you get style points if you name the trinket "Kirin's Ruler."
(Thanks go to inkoate for catching the transcription error, and gchpaco for catching a sign bug)
Running Stitch
spell... → spell
(gchpaco)
This is a fairly simple hex-making hex. Put on the stack all the bits you want, in the order you want them in. Cast this. You will now have one hex that is all the previous ones concatenated. Works on any number of components.
Reify
iota → spell
(gchpaco)
This is something I made after KirinDave noted that consideration works. Due to the same constraints as with the "knitting needle", I'm displaying in intro/retro pairs to emphasize the four considerations in a row.
This isn't something you want in a trinket, but it's useful in a spellbook. Have an iota on the stack, run this, and it assembles it into a hermes-able program to push that iota onto the stack, that you can then stitch together with other spells.
Stygian Loom
any..., spell → spell
(SnazzGass)
Turns any spell into a stygian spell that leaves no garbage on the stack.
Counter's Queue
num → list
(MachiToons)
Returns a list of integers from 0 up to num.
An alternate that consumes more executions but does not overwrite the ravenmind:
Uncapped Counter's Queue
num → list
([object Object], Rastaban)
A modification of MachiToons' Counter's Queue that only consumes one evaluation.
Kirin's Knitting Needle
sneaking spell, standing spell → spell
(KirinDave)
I've taken the trouble to transcribe my compiler for sneak trinkets. This makes it very easy to turn any pair of spells into a sneak trinket spell. It's written with simplicity of writing and use in mind.
To use this spell, put your "sneak" spell on the stack, then put your "standing" spell on the stack. Then put this spell on the stack, and call hermes. What's left on the stack is a compiled spell that is suitable for writing to a cypher, artifact, trinket, or spellbook (for use with CAD) that will cast the sneak spell while you're sneaking and the standing spell otherwise.
You cannot use this spell inside a trinket or cypher or whatever without extra work, but that is possible assuming you want to read the spells from foci dropped on the ground. I leave that version as an exercise for the hexxer.
I've written it inside an intro/retro pair to make sure to call out that you need to write consideration 4 times in a row.
The code is as follows:
If Pekhui is available, this change accommodates it.
Kirin's Ruler
(KirinDave)
This is a spell that I use to construct "vector fields". Vector fields are just points in space relative to [0,0,0]. This is very useful when you want to do something repetitive at a point in space but you don't know where that point in space is yet. For example, you might want to raycast to farmland and grow it it in a 3x3 space, or conjure a bubble of blocks around a monster.
To use this spell, put it in a trinket (you cannot use it via a CAD trinket from a spellbook!), then:
1. Put an empty list in a focus and hold it in offhand.
2. Place your Sentinel (normal is fine) somewhere. That is [0,0,0].
3. Right click the trinket on a block relative to the sentinel, it will be added to the focus's list.
4. Duplicates will be removed, so don't worry about accidentally clicking part of your world twice.
Remember, you get style points if you name the trinket "Kirin's Ruler."
(Thanks go to inkoate for catching the transcription error, and gchpaco for catching a sign bug)
Running Stitch
spell... → spell
(gchpaco)
This is a fairly simple hex-making hex. Put on the stack all the bits you want, in the order you want them in. Cast this. You will now have one hex that is all the previous ones concatenated. Works on any number of components.
Reify
iota → spell
(gchpaco)
This is something I made after KirinDave noted that consideration works. Due to the same constraints as with the "knitting needle", I'm displaying in intro/retro pairs to emphasize the four considerations in a row.
This isn't something you want in a trinket, but it's useful in a spellbook. Have an iota on the stack, run this, and it assembles it into a hermes-able program to push that iota onto the stack, that you can then stitch together with other spells.
Stygian Loom
any..., spell → spell
(SnazzGass)
Turns any spell into a stygian spell that leaves no garbage on the stack.
Counter's Queue
num → list
(MachiToons)
Returns a list of integers from 0 up to num.
An alternate that consumes more executions but does not overwrite the ravenmind:
Uncapped Counter's Queue
num → list
([object Object], Rastaban)
A modification of MachiToons' Counter's Queue that only consumes one evaluation.