Advertisement
EnderReaper64

Computercraft Geoscanner Turtle (Does not currently work)

Sep 30th, 2022 (edited)
1,358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | Software | 0 0
  1. local Scanner = peripheral.wrap("right")
  2.  
  3. print("What radius should this scan?")
  4. local Radius = read()
  5.  
  6. print("what block should this scan for?")
  7. local Block = read()
  8.  
  9. local ScanResults = Scanner.scan("block", 8)
  10. for a,b in pairs(ScanResults) do
  11.     if string.find(b.displayName, Block) then
  12.         print(b.x, b.y, b.z)
  13.     end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement