ElijahCrafter

Geo Scanner Test

Dec 1st, 2025
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | Source Code | 0 0
  1. local geo = peripheral.find("geo_scanner")
  2.  
  3. -- Find all ores within 8 blocks
  4. local ores = geo.findOres(8)
  5. for i, ore in ipairs(ores) do
  6.     print(ore.name .. " at " ..
  7.           ore.x .. "," .. ore.y .. "," .. ore.z)
  8. end
  9.  
  10. -- Scan specific block
  11. local block = geo.scanAt(0, -1, 0)
  12. print("Below: " .. block.name)
Advertisement
Add Comment
Please, Sign In to add comment