Block Scan & Break
Posted: 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.
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