Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if turtle.getFuelLevel == 0
- then turtle.refuel(1)
- end
- local count = 0
- turtle.select(13) turtle.suckUp(64)
- turtle.select(14) turtle.suckUp(64)
- turtle.select(15) turtle.suckUp(64)
- turtle.select(16) turtle.suckUp(64)
- local spot = 0
- while count < 16
- do if turtle.getFuelLevel() < 20
- then turtle.select(1)
- turtle.refuel(2)
- end
- local nofail,data = turtle.inspectDown()
- if data.metadata == 7 then
- turtle.digDown()
- end
- while turtle.getItemCount(13) == 0
- do spot = spot + 1
- turtle.select(spot)
- turtle.transferTo(13)
- end
- turtle.select(13)
- turtle.placeDown()
- if turtle.detect() == false
- then turtle.forward()
- end
- if turtle.detect()
- then count = count + 1
- if count < 16 then
- if count % 2 == 0
- then turtle.turnLeft()
- turtle.digDown()
- turtle.placeDown(13)
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnRight()
- turtle.digDown()
- turtle.placeDown(13)
- turtle.forward()
- turtle.turnRight()
- end
- end
- end
- end
- turtle.turnLeft()
- while turtle.detect() == false do turtle.forward() end
- turtle.turnRight()
- turtle.forward() turtle.forward()
- for i=2,16 do
- turtle.select(i)
- if turtle.getItemCount() ~= 0 then
- local data = turtle.getItemDetail()
- if data.name == "minecraft:wheat_seeds"
- then turtle.dropUp(64)
- else turtle.drop(64)
- end
- end
- end
- turtle.turnLeft() turtle.turnLeft()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement