Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i=1
- j=1
- k=1
- function ReFuel()
- turtle.select(15)
- turtle.suckDown(1)
- turtle.refuel()
- turtle.select(1)
- end
- function Place()
- i=1
- repeat
- turtle.placeUp()
- turtle.forward()
- i=i+1
- until i==3
- end
- function Circle()
- Place()
- turtle.turnRight()
- Place()
- turtle.turnRight()
- Place()
- turtle.turnRight()
- Place()
- turtle.turnRight()
- end
- function Dig()
- i=1
- repeat
- turtle.digUp()
- turtle.forward()
- i=i+1
- until i==3
- end
- function Square()
- Dig()
- turtle.turnRight()
- Dig()
- turtle.turnRight()
- Dig()
- turtle.turnRight()
- Dig()
- turtle.turnRight()
- end
- function Stone()
- turtle.turnLeft()
- turtle.select(1)
- turtle.suck(8)
- turtle.turnRight()
- Circle()
- sleep(120)
- Square()
- Dump()
- end
- function Wood()
- turtle.turnRight()
- turtle.turnRight()
- turtle.suck(8)
- turtle.turnLeft()
- turtle.turnLeft()
- Circle()
- sleep(120)
- Square()
- Dump()
- end
- function Dump()
- turtle.forward()
- turtle.select(1)
- turtle.dropDown()
- turtle.select(1)
- turtle.back()
- end
- function run()
- ReFuel()
- j=1
- repeat
- Stone()
- Wood()
- j=j+1
- until j==5
- end
- repeat
- run()
- until k==2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement