Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 0 - empty
- -- 1 - black
- -- 2 - red
- art = {
- {
- {2, 1, 1, 2},
- {1, 0, 0, 1},
- {1, 0, 0, 1},
- {2, 1, 1, 2},
- },
- {
- {1, 0, 0, 1},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {1, 0, 0, 1},
- }
- }
- for z = 1, #art do
- for y = 1, #art[z] do
- for x = 1, #art[z][y] do
- slot = art[z][y][x]
- if slot ~= 0 then
- turtle.select(slot)
- turtle.placeDown()
- end
- turtle.forward()
- end
- for i = 1, #art[z][y] do
- turtle.back()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- turtle.turnLeft()
- for y = 1, #art[z] do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.up()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement