Post your coolest Hexcasting creations here.
New topics are NOT for chatting or asking help, put those in the comments of a post or in a different forum.
beholderface
Posts: 37 Joined: Tue Dec 06, 2022 10:46 pm
Post
by beholderface » Tue Mar 21, 2023 7:08 am
This hex, designed for things like ancient debris mining, attempts to grab the item type of the entity you're looking at, then iterates over a 17x17x17 area centered on you, comparing each block against the entity you used. Each block that matches will then be broken and its drops teleported to you via a gate.
It is pretty performance intensive (on my machine with an i7 9700k, it takes ~3.1 seconds for the next tick of my superflat testing world), so please be considerate of others on servers.
Due to the fact that it uses normal Thoth's Gambit rather than any loop unrolling stuff for the item teleportation, it will trigger the recursion depth mishap if you use this in a space where it would mine more than ~400 blocks.
Code: Select all
//get items that already exist in order to remove them from list of items to grab after breaking target blocks
Mind's Reflection
Compass' Purification
Numerical Reflection: 16
Zone Distillation: Item
//get target block type and stick it in ravenmind
Mind's Reflection
Compass' Purification
Mind's Reflection
Alidade's Purification
Scout's Distillation
Physician's Purification
Huginn's Gambit
//produce the starting position
Vector Reflection -X
Vector Reflection -Y
Vector Reflection -Z
Additive Distillation
Additive Distillation
Numerical Reflection: 8
Multiplicative Distillation
Mind's Reflection
Compass' Purification
Additive Distillation
//initial loop index
Numerical Reflection: 0
{
Gemini Decomposition
Numerical Reflection: 17
Modulus Distillation
Prospector's Gambit
Numerical Reflection: 17
Division Distillation
Floor Purification
Numerical Reflection: 17
Modulus Distillation
Numerical Reflection: 2
Fisherman's Gambit II
Numerical Reflection: 289
Division Distillation
Floor Purification
Vector Exaltation
Numerical Reflection: 2
Fisherman's Gambit II
Additive Distillation
Gemini Decomposition
Surveyor's Purification
Muninn's Reflection //get type of target block
Equality Distillation
{
Break Block
Bookkeeper's Gambit: v
}
Flock's Disintegration
Augur's Exaltation
Hermes' Gambit
Numerical Reflection: 1
Additive Distillation
}
Numerical Reflection: 289
Gemini Gambit
{
Combination Distillation
}
Flock's Disintegration
Numerical Reflection: 288
Gemini Gambit
Numerical Reflection: 288
Flock's Gambit
Hermes' Gambit
Numerical Reflection: 17
Gemini Gambit
{
Combination Distillation
}
Flock's Disintegration
Numerical Reflection: 16
Gemini Gambit
Numerical Reflection: 16
Flock's Gambit
Hermes' Gambit
Hermes' Gambit
//remove start pos and loop index
Bookkeeper's Gambit: vv
//get items currently present
Mind's Reflection
Compass' Purification
Numerical Reflection: 16
Zone Distillation: Item
//remove preexisting items from list
Undertaker's Gambit
Intersection Distillation
Exclusionary Distillation
{
Gate's Opening
}
Jester's Gambit
{
//just a placeholder for gate iota
Bookkeeper's Gambit: -
}
Flock's Disintegration
Rotation Gambit II
Thoth's Gambit
Bookkeeper's Gambit: v
Mind's Reflection
Compass' Purification
Gate's Closing
4ni0n
Posts: 1 Joined: Tue Mar 28, 2023 9:45 pm
Post
by 4ni0n » Tue Mar 28, 2023 9:57 pm
Here's the patterns for this, let me know if something's incorrect.
Mind's Reflection Compass' Purification Numerical Reflection: 16 Zone Distillation: Item Mind's Reflection Compass' Purification Mind's Reflection Alidade's Purification Scout's Distillation qawde Huginn's Gambit Vector Reflection -X Vector Reflection -Y Vector Reflection -Z Additive Distillation Additive Distillation Numerical Reflection: 8 Multiplicative Dstl. Mind's Reflection Compass' Purification Additive Distillation Numerical Reflection: 0 qqq Gemini Decomposition Numerical Reflection: 17 Modulus Distillation Prospector's Gambit Numerical Reflection: 17 Division Dstl. Floor Purification Numerical Reflection: 17 Modulus Distillation Numerical Reflection: 2 Fisherman's Gambit II Numerical Reflection: 289 Division Dstl. Floor Purification Vector Exaltation Numerical Reflection: 2 Fisherman's Gambit II Additive Distillation Gemini Decomposition qaqqaea Muninn's Reflection Equality Distillation qqq Break Block Bookkeeper's Gambit: Drop 1 eee Flock's Disintegration Augur's Exaltation Hermes' Gambit Numerical Reflection: 1 Additive Distillation eee Numerical Reflection: 289 Gemini Gambit qqq Combination Distillation eee Flock's Disintegration Numerical Reflection: 288 Gemini Gambit Numerical Reflection: 288 Flock's Gambit Hermes' Gambit Numerical Reflection: 17 Gemini Gambit qqq Combination Distillation eee Flock's Disintegration Numerical Reflection: 16 Gemini Gambit Numerical Reflection: 16 Flock's Gambit Hermes' Gambit Hermes' Gambit Bookkeeper's Gambit: Drop 2 Mind's Reflection Compass' Purification Numerical Reflection: 16 Zone Distillation: Item Undertaker's Gambit Intersection Distillation Exclusionary Distillation qqq qaqeede eee Jester's Gambit qqq Bookkeeper's Gambit: Keep 1 eee Flock's Disintegration Rotation Gambit II Thoth's Gambit Bookkeeper's Gambit: Drop 1 Mind's Reflection Compass' Purification qqqwwqqqwqqawdedw
beholderface
Posts: 37 Joined: Tue Dec 06, 2022 10:46 pm
Post
by beholderface » Tue Mar 28, 2023 10:11 pm
Looked through like 20% of that, didn't notice any errors, it's probably all correct ¯\_(ツ)_/¯
Though it occurs to me that with recent Hexal versions changing Physician's Purification from "entity type, or item type if input entity is an item" to just "entity type", the usage of it here should be replaced with Sorter's Purification.
Code: Select all
//get items that already exist in order to remove them from list of items to grab after breaking target blocks
Mind's Reflection
Compass' Purification
Numerical Reflection: 16
Zone Distillation: Item
//get target block type and stick it in ravenmind
Mind's Reflection
Compass' Purification
Mind's Reflection
Alidade's Purification
Scout's Distillation
Sorter's Purification
Huginn's Gambit
//produce the starting position
Vector Reflection -X
Vector Reflection -Y
Vector Reflection -Z
Additive Distillation
Additive Distillation
Numerical Reflection: 8
Multiplicative Distillation
Mind's Reflection
Compass' Purification
Additive Distillation
//initial loop index
Numerical Reflection: 0
{
Gemini Decomposition
Numerical Reflection: 17
Modulus Distillation
Prospector's Gambit
Numerical Reflection: 17
Division Distillation
Floor Purification
Numerical Reflection: 17
Modulus Distillation
Numerical Reflection: 2
Fisherman's Gambit II
Numerical Reflection: 289
Division Distillation
Floor Purification
Vector Exaltation //stack state on first iteration: preexisting items, starting position, 0(loop index), [0,0,0](offset from starting position)
Numerical Reflection: 2
Fisherman's Gambit II
Additive Distillation //preexisting items, starting pos, 0, (starting pos offset + starting pos)
Gemini Decomposition
Sorter's Purification //preexisting items, starting pos, 0, (starting pos offset + starting pos), type of that block
Muninn's Reflection //add type of target block
Equality Distillation
{
Break Block
Bookkeeper's Gambit: v
}
Flock's Disintegration
Augur's Exaltation
Hermes' Gambit
Numerical Reflection: 1
Additive Distillation
}
Numerical Reflection: 289 //297
Gemini Gambit
{
Combination Distillation
}
Flock's Disintegration
Numerical Reflection: 288 //296
Gemini Gambit
Numerical Reflection: 288 //296
Flock's Gambit //ewdqdwe
Hermes' Gambit
Numerical Reflection: 17
Gemini Gambit
{
Combination Distillation
}
Flock's Disintegration
Numerical Reflection: 16
Gemini Gambit
Numerical Reflection: 16
Flock's Gambit
Hermes' Gambit
Hermes' Gambit //expected stack state: preexisting items, starting pos, loop index
//remove start pos and loop index
Bookkeeper's Gambit: vv
//get items currently present
Mind's Reflection
Compass' Purification
Numerical Reflection: 16
Zone Distillation: Item
//remove preexisting items from list
Undertaker's Gambit
Intersection Distillation
Exclusionary Distillation //stack state: new items
{
Gate's Opening
}
Jester's Gambit //pattern list for thoth, new items
{
//placeholder for gate iota
Bookkeeper's Gambit: -
}
Flock's Disintegration
Rotation Gambit II
Thoth's Gambit
Bookkeeper's Gambit: v
Mind's Reflection
Compass' Purification
Gate's Closing
Mind's Reflection Compass' Purification Numerical Reflection: 16 Zone Distillation: Item Mind's Reflection Compass' Purification Mind's Reflection Alidade's Purification Scout's Distillation qaqqaea Huginn's Gambit Vector Reflection -X Vector Reflection -Y Vector Reflection -Z Additive Distillation Additive Distillation Numerical Reflection: 8 Multiplicative Dstl. Mind's Reflection Compass' Purification Additive Distillation Numerical Reflection: 0 qqq Gemini Decomposition Numerical Reflection: 17 Modulus Distillation Prospector's Gambit Numerical Reflection: 17 Division Dstl. Floor Purification Numerical Reflection: 17 Modulus Distillation Numerical Reflection: 2 Fisherman's Gambit II Numerical Reflection: 289 Division Dstl. Floor Purification Vector Exaltation Numerical Reflection: 2 Fisherman's Gambit II Additive Distillation Gemini Decomposition qaqqaea Muninn's Reflection Equality Distillation qqq Break Block Bookkeeper's Gambit: Drop 1 eee Flock's Disintegration Augur's Exaltation Hermes' Gambit Numerical Reflection: 1 Additive Distillation eee Numerical Reflection: 289 Gemini Gambit qqq Combination Distillation eee Flock's Disintegration Numerical Reflection: 608 Gemini Gambit Numerical Reflection: 608 Flock's Gambit Hermes' Gambit Numerical Reflection: 17 Gemini Gambit qqq Combination Distillation eee Flock's Disintegration Numerical Reflection: 16 Gemini Gambit Numerical Reflection: 16 Flock's Gambit Hermes' Gambit Hermes' Gambit Bookkeeper's Gambit: Drop 2 Mind's Reflection Compass' Purification Numerical Reflection: 16 Zone Distillation: Item Undertaker's Gambit Intersection Distillation Exclusionary Distillation qqq qaqeede eee Jester's Gambit qqq Bookkeeper's Gambit: Keep 1 eee Flock's Disintegration Rotation Gambit II Thoth's Gambit Bookkeeper's Gambit: Drop 1 Mind's Reflection Compass' Purification qqqwwqqqwqqawdedw