Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 0 - air
- -- 1 - Damon
- -- 2 - black
- -- 3 - black wood
- -- 4 - wood
- art = {
- { 2, 2, 2, },
- { 2, 1, 2, },
- { 2, 2, 4, 3, 0, 0, 0, 0, 0, 2, 2, 2, },
- { 0, 0, 3, 4, 3, 0, 2, 2, 1, 2, },
- { 0, 0, 0, 3, 4, 3, 1, 1, 2, },
- { 0, 0, 0, 0, 3, 1, 2, 2, },
- { 0, 0, 0, 2, 1, 2, 1, 1, 2, },
- { 0, 0, 0, 2, 1, 2, 1, 1, 1, 2, },
- { 0, 0, 2, 1, 2, 0, 2, 1, 1, 1, 2, },
- { 0, 0, 2, 2, 0, 0, 0, 2, 1, 1, 1, 2, },
- { 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 2, },
- { 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 2, },
- { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 2, },
- { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 2, },
- { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 2, },
- { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 2, },
- { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, },
- }
- function buildLine(line)
- for element = 1,#line do
- slot = line[element]
- if slot ~= 0 then
- turtle.select(slot)
- turtle.placeDown()
- end
- turtle.forward()
- end
- for A = 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
- turtle.turnLeft()
- for stroka = 1,#image do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.up()
- end
- buildImage(art)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement