Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DIRECTION_FROM_TRANSPOSER_TO_COMPUTER = "north"
- local SIDE_OF_COMPUTER_TOUCHING_TRANSPOSER = "left"
- local SIDE_OF_COMPUTER_TOUCHING_CHEST = "back"
- local waterSource = peripheral.wrap(SIDE_OF_COMPUTER_TOUCHING_TRANSPOSER)
- local chest = peripheral.wrap(SIDE_OF_COMPUTER_TOUCHING_CHEST)
- function getFullCompName()
- return os.getComputerLabel()..","..tostring( os.getComputerID() )
- end
- function run()
- print(getFullCompName())
- print("running(ctrl-T)...")
- local done = false
- while not done do
- for i = 1, 15 do -- assumes slot 16 is for suckDown() to recive resultant flower
- turtle.select( i )
- local didDrop = turtle.dropDown( 1 )
- if not didDrop then
- if i == 1 then done = true end
- break
- end
- os.sleep( 2 )
- end
- --pick up finished flower
- turtle.select(16)
- turtle.suckDown()
- os.sleep(2) --autonomus activator and fluid transposer do thier work while turtle is droping but 2 seconds extra wont hurt
- end
- print("done")
- end
- run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement