Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- --- Created by yannb.
- --- DateTime: 28/10/2021 22:50
- ---
- function build_rows(steps)
- repetition = 1
- while True do
- for _ = 1, repetition * 6, 1 do
- turtle.forward()
- end
- turtle.up()
- for _ = 1, steps, 1 do
- for _ = 1, 4, 1 do
- for _ = 1, 3, 1 do
- turtle.forward()
- turtle.placeDown()
- end
- turtle.forward()
- turtle.turnLeft()
- end
- turtle.up()
- end
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.turnLeft()
- for _ = 1, steps, 1 do
- turtle.down()
- turtle.dig()
- end
- turtle.turnRight()
- for _ = 1, repetition * 6, 1 do
- turtle.back()
- end
- repetition = repetition + 1
- end
- end
- build_rows(4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement