Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function iff (x,y,z)
- if a[x][y][z]==1 then
- turtle.select(1)
- elseif a[x][y][z]==2 then
- turtle.select(2)
- elseif a[x][y][z]==3 then
- turtle.select(3)
- elseif a[x][y][z]==4 then
- turtle.select(4)
- elseif a[x][y][z]==5 then
- turtle.select(5)
- elseif a[x][y][z]==6 then
- turtle.select(6)
- elseif a[x][y][z]==7 then
- turtle.select(7)
- elseif a[x][y][z]==8 then
- turtle.select(8)
- elseif a[x][y][z]==9 then
- turtle.select(9)
- elseif a[x][y][z]==10 then
- turtle.select(10)
- elseif a[x][y][z]==11 then
- turtle.select(11)
- elseif a[x][y][z]==12 then
- turtle.select(12)
- elseif a[x][y][z]==13 then
- turtle.select(13)
- elseif a[x][y][z]==14 then
- turtle.select(14)
- elseif a[x][y][z]==0 then
- turtle.select(16)
- end
- end
- a = {{{0,0,0,0,0,0,0},
- {1,0,0,0,0,0,1},
- {1,0,0,0,0,0,1},
- {1,0,0,0,0,0,1},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {1,0,0,0,0,0,1},
- {1,0,0,0,0,0,1},
- {1,0,0,0,0,0,1},
- {0,0,0,0,0,0,0}},
- {{0,0,0,0,0,0,0},
- {1,0,0,2,0,0,1},
- {1,2,2,2,2,2,1},
- {1,0,0,2,0,0,1},
- {0,0,0,2,0,0,0},
- {1,0,0,2,0,0,0},
- {0,0,0,2,0,0,0},
- {0,0,0,2,0,0,0},
- {0,0,0,2,0,0,0},
- {0,0,0,2,0,0,0},
- {0,0,0,2,0,0,0},
- {1,0,0,2,0,0,1},
- {1,2,2,2,2,2,1},
- {1,0,0,2,0,0,1},
- {0,0,0,0,0,0,0}},
- {{4,4,4,4,4,4,4},
- {1,4,4,4,4,4,1},
- {1,4,4,4,4,4,1},
- {1,4,4,4,4,4,1},
- {4,4,4,4,4,4,4},
- {5,4,4,4,4,4,5},
- {5,4,4,4,4,4,5},
- {5,4,4,4,4,4,5},
- {5,4,4,4,4,4,5},
- {5,4,4,4,4,4,5},
- {1,4,4,4,12,12,1},
- {1,12,12,12,12,12,1},
- {1,12,12,12,12,12,1},
- {12,12,12,12,12,12,12}},
- {{6,6,7,7,7,6,6},
- {12,12,12,12,12,12,12},
- {12,12,12,12,12,12,12},
- {12,12,12,12,12,12,12},
- {5,0,0,0,0,0,5},
- {0,0,0,0,0,0,5},
- {5,0,0,0,0,0,5},
- {5,12,12,12,12,12,5},
- {5,12,12,12,12,12,5},
- {5,12,12,12,12,12,5},
- {5,12,12,12,12,12,5},
- {12,12,12,12,13,13,13},
- {13,13,13,13,13,13,13},
- {13,13,13,13,13,13,13},
- {8,8,13,13,13,8,8}},
- {{5,5,5,5,5,5,5},
- {5,5,5,5,5,5,5},
- {5,5,5,5,5,5,5},
- {5,5,5,5,5,5,5},
- {5,5,1,5,5,5,5},
- {5,0,0,0,0,0,5},
- {0,0,0,0,0,0,5},
- {5,0,0,0,0,0,5},
- {5,10,10,10,10,10,5},
- {5,0,0,0,0,0,5},
- {5,0,0,0,0,0,5},
- {5,0,0,0,0,0,5},
- {5,0,0,0,0,0,5},
- {5,0,0,0,0,0,5},
- {5,0,0,0,0,0,5},
- {5,5,5,5,5,14,14}},
- {{0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {14,11,11,11,11,11,14},
- {11,0,0,0,0,0,11},
- {11,0,0,0,0,0,11},
- {11,0,0,0,0,0,11},
- {14,10,10,10,10,10,14},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {1,0,0,0,0,0,1},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0}},
- {{0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {14,11,11,11,11,11,14},
- {11,0,0,0,0,0,11},
- {11,0,0,0,0,0,11},
- {14,10,10,10,10,10,14},
- {0,0,0,0,0,0,0},
- {1,0,0,0,0,0,1},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0}},
- {{0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {14,11,11,11,11,11,14},
- {11,0,0,0,0,0,11},
- {14,10,10,10,10,10,14},
- {1,0,0,0,0,0,1},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0}},
- {{0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {14,14,14,14,14,14,14},
- {14,14,14,14,14,14,14},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0}}}
- turtle.up()
- for x=1, #a do
- for y=1, #a[x] do
- for z=1, #a[x][y] do
- iff(x,y,z)
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- for y = 1,#a[x][y] do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.turnRight()
- end
- turtle.turnLeft()
- for y = 1,#a[x] do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.up()
- end
Advertisement
Add Comment
Please, Sign In to add comment