Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local fin = 0
- function succ()
- while (turtle.getItemCount(16) < 1) do
- turtle.suck()
- end
- turtle.suck()
- end
- function up()
- for i = 1, 23, 1 do
- turtle.digUp()
- turtle.up()
- end
- end
- function zadjust()
- for i = 1, 11, 1 do
- turtle.back()
- end
- turtle.turnLeft()
- end
- function xadjust()
- for i = 1, 41, 1 do
- turtle.dig()
- turtle.forward()
- end
- end
- function yadjust()
- while not turtle.detectDown() do
- turtle.down()
- end
- end
- function flush()
- for i = 1, 16, 1 do
- turtle.select(i)
- turtle.dropDown()
- end
- fin = 1
- end
- function retour()
- if fin == 1 then
- while not turtle.detectUp() do
- turtle.up()
- end
- turtle.turnRight()
- turtle.turnRight()
- for i = 1, 41, 1 do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnLeft()
- for i = 1, 11, 1 do
- turtle.back()
- end
- while not turtle.detectDown() do
- turtle.down()
- end
- turtle.select(1)
- end
- end
- while (1) do
- succ()
- up()
- zadjust()
- xadjust()
- yadjust()
- flush()
- retour()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement