Advanced Peripherals

Advanced Peripherals

29M Downloads

[Feature] Geolyzer

RGFTheCoder opened this issue ยท 0 comments

commented

Describe your feature idea

A feature similar to the OC counterpart that would allow a computer to ask for a certain cube of blocks (within a range). This would allow more efficient turtle pathfinding, better turtle mining, and so on.

Describe alternatives you've considered if you've any

Theres not many really.

Additional context

There could be 2 modes: A shape mode, which tells you if there is or isn't a block in a position in the selected area, and a specific mode which takes all the blocks of a specified type in the area and averages their positions. (Adding a delay could further add a choice between scanning a large area and scanning smaller areas for more precision) The selected area could also have a minimum size to not allow block-by-block scanning, although it would be slow due to the delay.
All the positions returned would be relative to the geolyzer.

Api Def?:
scanRegion(x, y, z, width, height, depth) -- scans a region and saves it into memory
existsBlock(x, y, z) -- will return true/false depending on if there is or isn't a block, or nil if the block hasnt been scanned with scanRegion.
scanMaterial(x, y, z, width, height, depth, blockId_Or_blockTag) -- scans a region and returns the average position of the specified block/block tag, or nil if the block isn't present in the area. Should have a large delay and is separate from scanRegion