Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Scanner = peripheral.wrap("right")
- print("What radius should this scan?")
- local Radius = read()
- print("what block should this scan for?")
- local Block = read()
- local ScanResults = Scanner.scan("block", 8)
- for a,b in pairs(ScanResults) do
- if string.find(b.displayName, Block) then
- print(b.x, b.y, b.z)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement