Advertisement
cory1234567

Robot Sheering Program

Mar 22nd, 2014
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. local robot = require("robot")
  2. local computer = require("computer")
  3.  
  4. function sheer()
  5.   for i = 1,4 do
  6.     robot.turnRight()
  7.     robot.use()
  8.   end
  9. end
  10.  
  11. function dropWool()
  12.   for i = 1,5 do
  13.    robot.count(4)
  14.     if robot.count(4) >= 32 then
  15.       robot.select(i)
  16.       robot.dropDown()
  17.     end
  18.   end
  19.   robot.select(1)
  20. end
  21.  
  22. while true do
  23.   sheer()
  24. --  dropWool()
  25.   os.sleep(30)
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement