Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local function plant(num)
- for i = 1,num do
- turtle.select(1)
- turtle.place()
- end
- end
- local function grow()
- if turtle.detect() then
- turtle.select(2)
- turtle.place()
- else
- sleep(1)
- end
- end
- local function check()
- if not turtle.detect() then
- plant(1)
- else
- sleep(1)
- end
- end
- check()
- grow()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement