Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- if rs.getInput("back", true) then
- sleep(1)
- --send signal to fertilize the plant
- rs.setOutput("right", true)
- sleep(1)
- rs.setOutput("right", false)
- sleep(1)
- rs.setOutput("right", true)
- sleep(1)
- rs.setOutput("right", false)
- --harvest plant
- turtle.dig()
- --plant new seed
- turtle.drop(1)
- else
- turtle.suck()
- sleep(20)
- print("Waiting for input")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement