Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function check()
- local has_block, data = turtle.inspect()
- if has_block then
- if(data.state.age == 7) then
- turtle.dig()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- else
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- end
- end
- end
- function farm()
- local crops = 30
- for i = 1, crops, 1 do
- check()
- end
- for i = 1, crops, 1 do
- turtle.select(1)
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- local inventory = 15
- local x = 1
- for i = 1, inventory, 1 do
- turtle.dropDown()
- turtle.select(x)
- x = x + 1
- end
- turtle.select(1)
- end
- while(true) do
- local has_block, data = turtle.inspect()
- if has_block then
- if(data.state.age == 7) then
- farm()
- end
- end
- end
- -- pastebin get xKQq2HBb farm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement