Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 1 - blue
- -- 2 - white
- -- ARRAY
- image = {
- {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
- {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
- {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
- {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
- {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
- {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
- {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
- }
- function buildLine(line)
- for i = 1,#line do
- slot=line[i]
- turtle.select(slot)
- turtle.placeDown()
- turtle.forward()
- end
- for W = 1,#line do
- turtle.back()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- for i = 1, #image do
- buildLine(image[i])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement