Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 1 - obsidian
- -- 2 - quartz
- art1={
- {1,2,2,1},
- {2,0,0,2},
- {2,0,0,2},
- {1,2,2,1}
- }
- art2={
- {2,0,0,2},
- {0,0,0,0},
- {0,0,0,0},
- {2,0,0,2}
- }
- 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
- function buildLayer(image)
- for i=1,#image do
- line=image[i]
- buildLine(line)
- end
- end
- buildLayer(art1)
- buildLayer(art2)
Advertisement
Add Comment
Please, Sign In to add comment