Advertisement
Guest User

startup.lua

a guest
Feb 21st, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. c = peripheral.wrap("front")
  2.  
  3. while true do
  4.  if #c.list() <= 18 then
  5.   turtle.select(1)
  6.   turtle.turnRight()
  7.   turtle.turnRight()
  8.   turtle.select(1)
  9.   turtle.suck()
  10.   turtle.turnLeft()
  11.   turtle.turnLeft()
  12.   turtle.craft()
  13.  
  14.   for i=1,16 do
  15.    turtle.select(i)
  16.    turtle.drop()
  17.   end
  18.  else
  19.   sleep(1)
  20.  end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement