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.
Some older useful spells from the akashic archives
- Robotgiggle
- Posts: 23
- Joined: Fri Dec 02, 2022 12:38 am
Re: Some older useful spells from the akashic archives
Here's an updated version of Kirin's Knitting Needle that works in 0.10.x versions of the mod. It should be used exactly the same as the original Knitting Needle spell – put the sneak spell on the stack, then the standing spell, then this, and then cast hermes.
- [object Object]
- Posts: 70
- Joined: Fri Dec 02, 2022 12:37 am
Knitting Needle, again
Here's another updated version of Kirin's Knitting Needle for 0.10.x, except this one's 4 patterns shorter.
Code: Select all
{
Numerical Reflection: 2
Flock's Gambit
{
Mind's Reflection
Stadiometer's Purification
Numerical Reflection: 1.5
Minimus Distillation II
{
Bookkeeper's Gambit: -
}
Flock's Disintegration
Flock's Disintegration
Augur's Exaltation
Hermes' Gambit
}
Numerical Reflection: 5
Rotation Gambit
Surgeon's Exaltation
}
Last edited by [object Object] on Thu Feb 02, 2023 3:13 am, edited 1 time in total.
- [object Object]
- Posts: 70
- Joined: Fri Dec 02, 2022 12:37 am
Uncapped Counter's Queue II
Uncapped Counter's Queue II
num → list
Like Uncapped Counter's Queue above, but uses 3 fewer patterns (6 if you don't need to preserve the ravenmind) in exchange for using two recursion levels instead of one.
num → list
Like Uncapped Counter's Queue above, but uses 3 fewer patterns (6 if you don't need to preserve the ravenmind) in exchange for using two recursion levels instead of one.
Code: Select all
{
// optional: save previous ravenmind
// omit if you don't need the previous ravenmind
Muninn's Reflection
Vacant Reflection
Rotation Gambit // replace with Jester's Gambit if you didn't save the ravenmind above
Dioscuri Gambit
Huginn's Gambit
{
Gemini Decomposition
Abacus Purification
Integration Distillation
}
Rotation Gambit
Gemini Gambit
{
Combination Distillation
}
Flock's Disintegration
Muninn's Reflection
Gemini Gambit
Muninn's Reflection
Flock's Gambit
Hermes' Gambit
Hermes' Gambit
// optional: restore previous ravenmind
// omit if you don't need the previous ravenmind
Jester's Gambit
Huginn's Gambit
}