Advertisement
jschuldes

goingDown

Dec 6th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- robot works the lever at cursed earth mob farm
  2.  
  3. -- pastebin -f get yejBnJVN goingDown
  4.  
  5. local robot = require("robot")
  6. local computer = require("computer")
  7. local tArgs = { ... }
  8.  
  9. local x = tArgs[1]
  10.  
  11. -- print usage info if no tArg was specified but needed
  12.  
  13. while true do
  14. os.sleep(20) -- wait for mobs to spawn
  15. robot.use() -- trigger the pistons
  16. os.sleep(3) -- pause
  17. robot.use() -- retract the pistons
  18. -- then go back to sleep
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement