Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- code for turtle to harvest botany pots in a spiral
- -- must put stick in 1st slot
- local count = 1
- function inc(num)
- num = num or 1
- for i=1,num do
- turtle.placeUp()
- turtle.placeDown()
- turtle.forward()
- end
- end
- inc()
- turtle.turnRight()
- inc(2)
- turtle.turnRight()
- inc(2)
- turtle.turnRight()
- inc(3)
- turtle.turnRight()
- inc(3)
- turtle.turnRight()
- inc(4)
- turtle.turnRight()
- inc(4)
- turtle.turnRight()
- inc(5)
- turtle.turnRight()
- inc(5)
- turtle.turnRight()
- inc(2)
- turtle.turnRight()
- inc(3)
- turtle.turnRight()
- turtle.turnRight()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement