Marshie's 1.18.2 Hexes
Posted: Tue Feb 14, 2023 11:35 pm
This topic is where I'll be keeping any spells that I think are good enough for the public eye. Note that I'm playing on 1.18 here; I make 0 guarantees that anything here or the principles behind them will work in more current versions.
Veinmine
It's veinmine. Does not detect diagonal blocks (but can be easily modified to do so). Currently always ends on a mishap, either of the null reference or too many recursions variety, and this is another thing that can be fixed probably but I can't be bothered. Uses Hexal.
More stuff as I come up with them, suggestions for optimizations or tweaks are welcome.
Veinmine
It's veinmine. Does not detect diagonal blocks (but can be easily modified to do so). Currently always ends on a mishap, either of the null reference or too many recursions variety, and this is another thing that can be fixed probably but I can't be bothered. Uses Hexal.
Code: Select all
(
Numerical Reflection: 19 //Post-Initialization, the stack will consist of this function (for recursive cloning) and the current target vector.
Gemini Gambit //Each search operation uses the target vector 3 times. 6 operations * 3 = 18, plus one for the break block at the end.
Vector Reflection +X //Each of the next six chunks will: check if an adjacent block is the same as the target block;
Add //push that block to the list of target blocks if so; or (0,0,0) if not; then save the new list of targets to the ravenmind.
Surveyor's Distillation
Negation Purification
Jester's Gambit
Vector Reflection +X
Add
Gemini Decomposition
Numerical Reflection: 3
Fisher's Gambit
Multiply
Subtract
Muninn's Reflection
Jester's Gambit
Integration Distillation
Huginn's Gambit
Vector Reflection -X
Add
Surveyor's Distillation
Negation Purification
Jester's Gambit
Vector Reflection -X
Add
Gemini Decomposition
Numerical Reflection: 3
Fisher's Gambit
Multiply
Subtract
Muninn's Reflection
Jester's Gambit
Integration Distillation
Huginn's Gambit
Vector Reflection +Y
Add
Surveyor's Distillation
Negation Purification
Jester's Gambit
Vector Reflection +Y
Add
Gemini Decomposition
Numerical Reflection: 3
Fisher's Gambit
Multiply
Subtract
Muninn's Reflection
Jester's Gambit
Integration Distillation
Huginn's Gambit
Vector Reflection -Y
Add
Surveyor's Distillation
Negation Purification
Jester's Gambit
Vector Reflection -Y
Add
Gemini Decomposition
Numerical Reflection: 3
Fisher's Gambit
Multiply
Subtract
Muninn's Reflection
Jester's Gambit
Integration Distillation
Huginn's Gambit
Vector Reflection +Z
Add
Surveyor's Distillation
Negation Purification
Jester's Gambit
Vector Reflection +Z
Add
Gemini Decomposition
Numerical Reflection: 3
Fisher's Gambit
Multiply
Subtract
Muninn's Reflection
Jester's Gambit
Integration Distillation
Huginn's Gambit
Vector Reflection -Z
Add
Surveyor's Distillation
Negation Purification
Jester's Gambit
Vector Reflection -Z
Add
Gemini Decomposition
Numerical Reflection: 3
Fisher's Gambit
Multiply
Subtract
Muninn's Reflection
Jester's Gambit
Integration Distillation //If you want to get diagonals, add more of these chunks.
Huginn's Gambit //That'll require 16 more of these. You may want to write a helper spell for that.
Break Block //Finally we use the last target vector. The stack is now empty except for a copy of this function.
Gemini Decomposition //Which we will copy for hermes-ing later.
Muninn's Reflection //Pull the current list of target blocks.
Uniqueness Purification //Remove all blocks that were zeroed out and any dupes.
Gemini Decomoposition
Numerical Reflection: 1
Selection Distillation //Pull the next vector
Jester's Gambit
Numerical Reflection: 1
Excisor's Distillation //Remove that vector from the list
Huginn's Gambit //and push to ravenmind.
Jester's Gambit
Hermes' Gambit //Recursion
)
Gemini Decomposition //Copy the function for hermes-ing later
Mind's Reflection //Raytrace
Compass Purification
Mind's Reflection
Alidade's Purification
Archer's Distillation
Vector Reflection Zero //Prepare the ravenmind
Singleton's Purification
Huginn's Gambit //Initialize the ravenmind with a list containing the zero vector.
Jester's Gambit
Hermes' Gambit //And we're off to the races