summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hole.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/hole.lua b/hole.lua
index 6c2501a..2d45af6 100644
--- a/hole.lua
+++ b/hole.lua
@@ -12,7 +12,10 @@ repeat
local targets = {}
local scanned = scanner.scan()
for _,v in ipairs(scanned) do
- if v.name == "minecraft:cobblestone" then
+ if v.z <= 7 and v.z >= -8
+ and v.x <= 7 and v.x >= -8
+ and v.y < 0 then
+
table.insert(targets,v)
end
end