Advertisement
Guest User

test

a guest
Aug 7th, 2024
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement