Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- go = 0
- etage=0
- function down ()
- turtle.digDown()
- turtle.down()
- end
- function place ()
- turtle.digDown()
- turtle.select(1)
- turtle.placeDown(1)
- turtle.forward()
- turtle.digDown()
- turtle.select(2)
- turtle.placeDown(2)
- turtle.forward()
- turtle.digDown()
- turtle.select(3)
- turtle.placeDown(3)
- turtle.forward()
- turtle.digDown()
- turtle.select(4)
- turtle.placeDown(4)
- turtle.forward()
- turtle.digDown()
- turtle.select(5)
- turtle.placeDown(5)
- turtle.forward()
- turtle.digDown()
- turtle.select(6)
- turtle.placeDown(6)
- turtle.forward()
- turtle.digDown()
- turtle.select(7)
- turtle.placeDown(7)
- turtle.forward()
- turtle.digDown()
- turtle.select(8)
- turtle.placeDown(8)
- turtle.forward()
- turtle.digDown()
- turtle.select(9)
- turtle.placeDown(9)
- turtle.forward()
- turtle.digDown()
- turtle.select(10)
- turtle.placeDown(10)
- end
- function turn ()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- function turn2 ()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- while go <= 11 do
- down()
- go=go+1
- end
- if (go>==11) then
- while etage<=9 do
- place()
- turn()
- etage=etage+1
- place()
- turn2()
- etage=etage+1
- end
- end
- if (etage==9) then
- turtle.up()
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- etage=0
- go=24
- if (go>=11) then
- while etage>=9 do
- place()
- turn()
- etage=etage+1
- place()
- turn2()
- etage=etage+1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement