Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - --the ID of the control computer
 - local controller = 29
 - function spawn()
 - turtle.select(slot)
 - turtle.drop()
 - end
 - function retrieve()
 - turtle.select(slot)
 - turtle.suck()
 - end
 - --code
 - rednet.open("right")
 - while true do
 - id,z = rednet.receive()
 - if id == controller and z < 17 then
 - slot = z
 - spawn()
 - elseif id == controller and z == 17 then
 - retrieve()
 - end
 - end
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment