Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Have the turtle facing the device that will be feeding into it
- -- Larger stack to the left, smaller stack to the right
- os.sleep(300)
- print("Beginning distribution protocol")
- while true do
- print("Distributing")
- turtle.select(1)
- stackSize = turtle.getItemCount(1)
- distSize = (stackSize-(stackSize % 2)) / 2
- turtle.transferTo(2, distSize)
- turtle.turnLeft()
- turtle.select(1)
- turtle.drop()
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(2)
- turtle.drop()
- turtle.turnLeft()
- print("Sleeping until next transfter")
- os.sleep(600)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement