Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Please specify how long the field is")
- local x = read()
- print("is this a sugarcane farm or a melon/pumpkin farm")
- print("3 = sugarcane")
- print("5 = pumpkins/melons")
- local y = read()
- while x ~= 0 do
- for i =1, 16 do
- turtle.select(i)
- turtle.dropDown()
- end
- turtle.select(1)
- if turtle.getFuelLevel() <= 3*x
- then
- turtle.suckDown()
- turtle.refuel(32)
- end
- for i =1, 2 do
- for i =1, x+1 do
- turtle.forward()
- turtle.turnLeft()
- if turtle.detect() == true
- then
- turtle.dig()
- end
- turtle.turnRight()
- end
- turtle.turnLeft()
- for i =0,y do
- turtle.forward()
- end
- turtle.turnLeft()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement