Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numSlot=0
- distance=0
- while distance<500 do
- for x,1,height do
- if turtle.detect() then
- turtle.dig()
- end
- if turtle.detectDown() then
- turtle.digDown()
- end
- turtle.down()
- end
- if not suck() then
- for x,1,height do
- turtle.up()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- booln = 0
- while not turtle.detect() do
- turtle.forward()
- end
- for slot,4,16 do
- turtle.select(slot)
- turtle.drop()
- end
- turtle.select(1)
- turtle.suckUp()
- turtle.select(2)
- turtle.suckUp()
- turtle.select(3)
- turtle.suckUp()
- turtle.turnLeft()
- turtle.turnLeft()
- for dist,1,distance do
- turtle.forward()
- end
- for x,1,height do
- turtle.down()
- end
- suck()
- end
- if not turtle.detect() and turtle.getItemCount(1)>1 then
- turtle.select(1)
- turtle.placeDown()
- end
- for x,1,height do
- turtle.up()
- end
- fuelUP()
- end
- function suck ()
- turtle.select(4)
- count=0
- for c,1,height do
- for slot,4,16 do
- count=count + turtle.getItemCount(slot)
- end
- if count>704 then
- return false
- end
- turtle.suckDown()
- end
- return true
- end
- function fuelUP ()
- if turtle.getFuelLevel()<=16 then
- turtle.select(2)
- if turtle.getItemCount(2)>1 then
- turtle.refuel(1)
- return true
- end
- end
- return false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement