smigger22

Miner

Jul 31st, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. rednet.open( "right" )
  2. local state = "false"
  3.  
  4. local function checkState()
  5. while true do
  6. local id, msg, dis = rednet.recieve()
  7. state = msg
  8. end
  9. end
  10.  
  11. while true do
  12. print( os.getComputerID )
  13. checkState()
  14. if state == "true" then
  15. if turtle.detect() then
  16. turtle.dig()
  17. turtle.dropUp()
  18. end
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment