Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- this is a CRUDE script for finding ancient debris
- -- it was made in all the mods 10 modpack, script may break in different mod versions
- -- script stops when first block is found, break ore and rerun script.
- -- https://pastebin.com/BrCKkttY
- -- https://www.youtube.com/watch?v=9PRjpd4lUDk
- term.clear()
- local geo = peripheral.find("geoScanner")
- if not geo then error("geo scanner peripheral not found") end
- local scan = geo.scan(16)
- print("Starting search.")
- for i, data in ipairs(scan) do
- if data.name == "minecraft:ancient_debris" then
- --print("X: ",data.x," Y: ",data.y," Z:", data.z)
- if data.x < 0 then
- print("go WEST ", math.abs(data.x))
- else
- print("go EAST ", math.abs(data.x))
- end
- if data.y < 0 then
- print("go DOWN ", math.abs(data.y))
- else
- print("go UP ", math.abs(data.y))
- end
- if data.z < 0 then
- print("go NORTH ", math.abs(data.z))
- else
- print("go SOUTH ", math.abs(data.z))
- end
- break
- end
- end
- print("Search done.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement