Advertisement
hbar

startup

Sep 15th, 2013
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. while true do
  2.   os.pullEvent("redstone")
  3.   if rs.getBundledInput("front") == colors.white then
  4.     turtle.select(1)
  5.     turtle.digUp()
  6.     while not turtle.up() do
  7.       sleep(0.1)
  8.     end
  9.     while not turtle.up() do
  10.       sleep(0.1)
  11.     end
  12.     turtle.select(2)
  13.     turtle.place()
  14.     local re = peripheral.wrap("front")
  15.     re.pullIntoSlot("east",2,1,0)
  16.     sleep(1)
  17.     re.pushIntoSlot("east",0,1,2)
  18.     turtle.dig()
  19.     while not turtle.down() do
  20.       sleep(0.1)
  21.     end
  22.     while not turtle.down() do
  23.       sleep(0.1)
  24.     end
  25.     turtle.select(1)
  26.     turtle.placeUp()
  27.   end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement