Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- os.loadAPI("ocs/apis/sensor")
- local prox = sensor.wrap("top")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- target = prox.getTargets()
- for k,v in pairs(target) do
- print(k)
- details = prox.getTargetDetails(k)
- print("X: "..details.Position.X)
- print("Y: "..details.Position.Y)
- print("Z: "..details.Position.Z)
- end
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement