Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = { ... }
- s = tonumber(args[1])
- x = 0
- y = 0
- z = 0
- right = true;
- turtle.digUp()
- turtle.up()
- while z < 4 do
- z = z + 1
- while y < s do
- y = y + 1
- while x < s do
- x = x + 1
- turtle.dig()
- turtle.forward()
- end
- if right then
- turtle.turnRight()
- while turtle.detect() do
- turtle.dig()
- sleep(1)
- end
- x = 1
- turtle.forward()
- turtle.turnRight()
- right = not right
- else
- turtle.turnLeft()
- while turtle.detect() do
- turtle.dig()
- sleep(1)
- end
- x = 1
- turtle.forward()
- turtle.turnLeft()
- right = not right
- end
- right = not right
- end
- turtle.digDown()
- turtle.down()
- y = 1
- end
Advertisement
Add Comment
Please, Sign In to add comment