Advertisement
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] ==0 then
- turtle.select(16)
- end
- end
- a={{0,0,0,1,1,1,0,0,0,0,0,0,0,1,0,0} ,
- {0,0,1,2,2,2,1,0,0,0,0,0,1,3,1,0} ,
- {0,1,2,2,2,2,2,1,0,0,0,0,1,3,3,1} ,
- {0,1,2,2,2,2,2,1,0,0,0,1,3,3,3,1} ,
- {1,2,2,2,4,1,2,2,1,0,0,1,3,2,3,1} ,
- {1,2,2,2,1,1,2,2,1,0,0,0,1,5,2,1} ,
- {0,1,2,2,2,2,2,2,2,1,0,0,1,2,1,0} ,
- {0,0,1,1,1,2,2,1,2,2,1,1,2,2,1,0} ,
- {0,0,0,1,5,2,1,2,2,2,1,2,2,1,0,0} ,
- {0,0,0,1,5,5,5,1,2,2,1,2,1,0,0,0} ,
- {0,0,1,0,1,1,5,2,2,2,1,1,0,0,0,0} ,
- {0,0,0,0,0,1,1,1,2,1,1,0,0,0,0,0} ,
- {0,0,0,0,0,0,1,6,2,6,1,0,0,0,0,0} ,
- {0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0}}
- turtle.up()
- for x=1,14 do
- for y=1,16 do
- iff(x,y)
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- for y =1,16 do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement