Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local geo = component.geolyzer
- local holo = component.hologram
- holo.clear()
- print("Starting geolyzer")
- print("Scanning, may take a while!")
- for _x=-16,16 do
- printstr = ""
- for _z=-16,16 do
- --print("Scanning ".._x..", ".._z)
- local data = geo.scan(_x, _z)
- local val = data[31]
- --print(#data)
- if(val>0) then
- printstr = printstr.."X"
- holo.set(24+_x, 8, 24+_z, true)
- else
- printstr = printstr.." "
- end
- os.sleep(0.5)
- end
- print(printstr)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement