Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function doFarm()
- local a = 0
- local function doRow()
- local i = 0
- while i<14 do
- turtle.forward()
- turtle.select(1)
- local success, data = turtle.inspectDown()
- if data.metadata == 7 then
- turtle.digDown()
- turtle.placeDown()
- i = i + 1
- else i = i + 1
- end
- end
- end
- while a <= 6 do
- doRow()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- doRow()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- a = a + 1
- end
- end
- doFarm()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement