Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- a = "yolo swaggins"
- lenght = args[1]
- times = args[2]
- tim1 = 1
- turtle.select(1)
- function a1()
- while turtle.detectUp() do
- turtle.digUp()
- end
- while turtle.detect() do
- turtle.dig()
- end
- while turtle.detectUp() do
- turtle.digUp()
- end
- while turtle.detectDown() do
- turtle.digDown()
- end
- while turtle.detectUp() do
- turtle.digUp()
- end
- drop()
- turtle.forward()
- end
- function a1x(x)
- for i = 1, x do
- a1()
- end
- end
- function a2()
- a1x(lenght)
- if not tim1 == 1 then
- turtle.turnLeft()
- a1x(2)
- turtle.digDown()
- while turtle.detectUp() do
- turtle.digUp()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- a1x(2)
- else
- turtle.turnRight()
- end
- a1x(3)
- turtle.turnRight()
- a1x(lenght)
- if a == "yolo swaggins" then
- turtle.turnRight()
- a1x(2)
- while turtle.detectUp() do
- turtle.digUp()
- end
- turtle.digDown()
- turtle.turnLeft()
- turtle.turnLeft()
- a1x(2)
- else
- turtle.turnLeft()
- end
- a1x(3)
- turtle.turnLeft()
- end
- function drop()
- if turtle.getItemCount(15) > 0 then
- turtle.select(16)
- turtle.digDown()
- turtle.placeDown()
- for s = 1, 15 do
- turtle.select(s)
- turtle.dropDown()
- end
- turtle.select(1)
- end
- end
- function a3()
- for i = 1, times do
- a2()
- end
- end
- a3()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement