Advertisement
Guest User

start

a guest
Sep 2nd, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local p = peripheral
  2. turtle.select(1)
  3. turtle.place()
  4. local m = p.wrap("front")
  5.  
  6. while m.isActive() then
  7.   sleep(.5)
  8.  if rs.getInput("back", false) then
  9.    rs.setOutput("bottom", true)
  10.  end
  11. end
  12.  
  13. sleep(5)
  14. rs.setOutput("bottom", false)
  15. sleep(1)
  16. rs.setOutput("back", true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement