Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function open()
- turtle.digUp()
- turtle.up()
- turtle.digUp()
- turtle.up()
- turtle.digUp()
- turtle.down()
- turtle.down()
- turtle.placeUp()
- end
- function close()
- turtle.digUp()
- turtle.up()
- turtle.up()
- turtle.placeUp()
- turtle.down()
- turtle.placeUp()
- turtle.down()
- turtle.placeUp()
- end
- while true do
- term.clear()
- term.setCursorPos(1,1)
- if rs.getInput("left") then
- open()
- sleep(5)
- close()
- end
- if not rs.getInput("left")
- print("waiting master!")
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment