Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = x+1
- b = y
- function Move(forw)
- repeat
- turtle.forward()
- forw=forw-1
- until forw==0
- end
- function TurnL(turnw)
- repeat
- turtle.turnLeft()
- turnw=turnw-1
- until turnw == 0
- end
- function TurnR(turnw)
- repeat
- turtle.turnRight()
- turnw=turnw-1
- until turnw == 0
- end
- function StartUp()
- Move(4)
- TurnR(1)
- Move(3)
- TurnR(2)
- turtle.down()
- end
- function GoFarm()
- while b>0 do
- while a>0 do
- turtle.digDown()
- turtle.suckDown()
- turtle.placeDown()
- Move(1)
- a=a-1
- end
- TurnR(2)
- Move(x+1)
- TurnL(1)
- Move(1)
- TurnL(1)
- a=x+1
- b=b-1
- end
- end
- function Return()
- turtle.up()
- TurnL(1)
- Move(y)
- TurnR(1)
- Move(3)
- TurnL(1)
- Move(4)
- TurnL(2)
- end
- function Empty()
- slot=2
- repeat
- turtle.select(slot)
- turtle.dropDown()
- slot=slot+1
- until slot > 14
- turtle.select(1)
- end
- function GoDrop()
- Empty()
- CurSlot = turtle.getItemCount(1)
- turtle.dropDown(CurSlot-2)
- Empty()
- end
- StartUp()
- GoFarm()
- Return()
- GoDrop()
- shell.run("loop")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement