Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --black1
- --red2
- --wite3
- --empty4
- art={
- {0,0,0,0,1,1,1,0,0},
- {0,0,0,1,2,2,2,1,0},
- {0,0,1,2,3,3,2,2,1},
- {0,1,2,2,2,2,2,2,1},
- {1,2,2,2,2,2,2,1,0},
- {0,1,2,2,2,2,2,2,1},
- {0,0,1,2,2,2,2,2,1},
- {0,0,0,1,2,2,2,1,0},
- {0,0,0,0,1,1,1,0,0}
- }
- function buildLine (colors)
- for i = 1,#colors do
- slot = colors[i]
- if slot~=0 then
- turtle.select(slot)
- turtle.placeDown()
- end
- turtle.forward()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- for e = 1,#colors do
- turtle.back()
- end
- end
- for i=1,#art do
- line=art[i]
- buildLine(line)
- end
Advertisement
Add Comment
Please, Sign In to add comment