RobotBubble

TurtleID

Oct 23rd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. local success, data = turtle.inspect()
  2. if success then
  3. term.clear()
  4. term.setCursorPos(1, 1)
  5. print("ID:", data.name)
  6. sleep(1)
  7. rednet.broadcast("ID:"..data.name)
  8. sleep(1)
  9. else
  10. print("No/Unidentifiable block")
  11. rednet.broadcast("No/Uniedentifiable block")
  12. sleep(1)
  13. end
Add Comment
Please, Sign In to add comment