Advertisement
Alakazard12

Robot

Apr 24th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local robot = require("robot")
  2. local component = require("component")
  3. local inv = component.inventory_controller
  4.  
  5. for i = 1, 300 do
  6.   for m = 1, 8 do
  7.     robot.use(nil, true)
  8.   end
  9.   robot.swing()
  10.   inv.equip()
  11.   robot.use()
  12.   inv.equip()
  13.   if robot.count() < 3 then
  14.     for i = 2, 16 do
  15.       if robot.compareTo(i) then
  16.         robot.select(i)
  17.         robot.transferTo(1)
  18.         robot.select(1)
  19.         break
  20.       end
  21.     end
  22.   end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement