Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tunel()
- for i=1,5 do
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- end
- end
- local function checkInv()
- for i=1,16 do
- turtle.select(i)
- if turtle.getItemCount()~=0 then
- return 1
- end
- end
- return 0
- end
- function dropItems()
- for i=1,16 do
- turtle.select(i)
- turtle.drop()
- end
- end
- function intoarce(var)
- turtle.turnLeft()
- turtle.turnLeft()
- for i=1,var do
- turtle.forward()
- end
- turtle.turnRight()
- end
- tunel()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- turtle.turnLeft()
- tunel()
- turtle.turnLeft()
- for i=1,10 do
- turtle.forward()
- end
- local drum=0
- local inv=checkInv()
- while inv==1 do
- print("a")
- turtle.forward()
- turtle.turnLeft()
- if turtle.detect()==true then
- dropItems()
- inv=checkInv()
- end
- if inv==1 then
- turtle.up()
- dropItems()
- turtle.down()
- end
- turtle.turnRight()
- drum=drum+1
- inv=checkInv()
- end
- intoarce(drum)
- drum=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement