zed_com

Булижка

Feb 20th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local robot = require("robot")
  2. local start = require("component").crafting
  3.  
  4. local function Craft()
  5.   for i = 17, 48 do
  6.     print(i)
  7.     robot.select(i)
  8.     start.craft(64)
  9.     robot.dropDown(64)
  10.   end
  11. end
  12.  
  13. while true do
  14.   robot.select(1)
  15.   for i = 1, 32 do
  16.     while not robot.detect() do
  17.     end
  18.       robot.swing(3)
  19.     while not robot.detectUp() do
  20.     end
  21.       robot.swingUp(1)
  22.   end
  23.   Craft()
  24. end
Advertisement
Add Comment
Please, Sign In to add comment