Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 0 - air
- -- 2 - black
- -- 3 - red
- --
- art = {
- {0,0,0,2,2,0},
- {0,0,2,3,3,2},
- {0,2,3,3,3,2},
- {2,3,3,3,2,0},
- {0,2,3,3,3,2},
- {0,0,2,3,3,2},
- {0,0,0,2,2,0},
- }
- function buildLine(line)
- for element = 1,#line do
- slot = line[element]
- if slot ~= 0 Then
- turtle.select(slot)
- turtle.placeDown()
- turtle.forward()
- end
- for w = 1,#line do
- turtle.back()
- end
- end
- function buildImage(image)
- for stroka = 1,#image do
- buildLine(image[stroka])
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- end
- buildImage(art)
Advertisement
Add Comment
Please, Sign In to add comment