Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 0 - nothing
- -- 1 - obsidian
- -- 2 - stone
- art = {
- {{1, 2, 2, 2, 1},
- {2, 0, 0, 0, 2},
- {2, 0, 0, 0, 2},
- {2, 0, 0, 0, 2},
- {1, 2, 2, 2, 1}},
- {{2, 0, 0, 0, 2},
- {0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0},
- {2, 0, 0, 0, 2}}
- }
- for depth=1, #art do
- turtle.up()
- for row=1, #art[depth] do
- for column=1, #art[depth][row] do
- slot = art[depth][row][column]
- if slot == 0 then
- turtle.forward()
- else
- turtle.select(slot)
- turtle.placeDown()
- turtle.forward()
- end
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- for column = 1, 5 do
- turtle.back()
- end
- end
- turtle.turnRight()
- for row=1, #art[depth] do
- turtle.forward()
- end
- turtle.turnLeft()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement