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