CelticCoder

geoScan

Aug 7th, 2024
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. scanner = peripheral.wrap("back")
  2.  
  3. blocks = scanner.scan(15)
  4. if blocks ~= nil then
  5.     for _, block in pairs(blocks) do
  6.         if block.name == "allthemodium:allthemodium_ore" or block.name == "allthemodium:allthemodium_slate_ore" then
  7.             print(block.x .. " " .. block.y .. " " .. block.z)
  8.         end
  9.     end
  10. else
  11.     print("Couldnt Scan")
  12. end
  13.  
Add Comment
Please, Sign In to add comment