#(Mr_Wholesome) Flat find blocks (horizontal)
35 messages · Page 1 of 1 (latest)
(Mr_Wholesome) Flat find blocks (horizontal)
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
Since find_blocks.within gives you sphere shaped range its not 100% right when it comes to horizontal cheking
included image as example
okey found a way to do it, this is my approach for the solution, if anything comes to your minds or any other way to make this more clean open to suggestions
https://paste.denizenscript.com/View/126374
Content of Denizen Script Paste #126374: Find block in horizontal (nearest)... pasted 2024/09/07 13:11:49 UTC-07:00, Paste length: 715 characters across 14 lines, Content: timeCheck2: type: task
!t find.surface_blocks
Returns a list of matching surface blocks within a radius.
Result list is sorted by closeness (1 = closest, 2 = next closest, ... last = farthest).
finding
ListTag(LocationTag)
Im not sure if this is what youre looking for
idrk what surface blocks finds though, and im not on to test it
weather surface means any blocks not covered by air directly
or any block not covered by air at all
but your solution seems to be fine
tested that doesnt work in this use case
i was gonna close the thread but then i thought maybe someone can do it better or with less loops so im waiting for it xD
can grab corners from the center and make a cuboid and then return list of blocks in it
locationcenter + 4 Z + 4 X is one corner and locationcenter - 4 Z - 4 X is another corner
isnt that what i did exactly ?
but like 10 times more complicated
but still need to find the nearest block
Did you mean to search for itemtag.lock?
!t areaobject.blocks
Returns each block location within the area.
Optionally, specify a material matcher to only return locations with that block type.
ListTag(LocationTag)
# Spawns a debugblock to highlight every plank-type block in the area.
- debugblock <cuboid[my_cuboid].blocks[*planks]>
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@scarlet depot
i'll close this in couple hours i just wait if someone has any ideas or any other way for this