Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- pastebin get wtbDTQG4 farming
- -- field spezification
- local iFelder = 10
- local iReihen = 5
- local iWasserReihe = 3
- -- turtle spetification
- local iSamenSlot = 1
- local iKohleSlot = 2
- local iF = 1
- local iR = 1
- function nextLine(iAktuell)
- if iAktuell%2==0 then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- else
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- end
- function checkFuel(iSamenSlot, iKohleSlot)
- iTankMin = 20
- if turtle.getFuelLevel() < iTankMin then
- iKohle = turtle.getItemCount(iKohleSlot)
- turtle.select(iKohleSlot)
- turtle.refuel(iKohle/2)
- turtle.select(iSamenSlot)
- end
- end
- turtle.up()
- turtle.up()
- while iR<iReihen do
- while iF<iFelder do
- turtle.forward()
- if iReihe == iWasserReihe then
- else
- turtle.digDown()
- turtle.placeDown()
- end
- iF = iF+1
- end
- nextLine(iR)
- iF = 1
- iR = iR+1
- checkFuel(iSamenSlot, iKohleSlot)
- end
- turtle.turnRight()
- turtle.turnRight()
- turtle.down()
- turtle.down()
- -- create by Padhie alias PaddyPadhie
Advertisement
Add Comment
Please, Sign In to add comment