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