Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - --Power by Bardiel-- [email protected]
 - --http://www.youtube.com/user/BardielHachiSan
 - --Este programa funciona con la vercion 1.45 del ComputerCraft
 - local tArgs = { ... }
 - if tonumber (tArgs[1]) then
 - slot = tonumber (tArgs[1])
 - else
 - slot = -1
 - end
 - for c = 1 , 15 do
 - if ( turtle.getItemCount( c ) > 0 ) and ( turtle.getItemSpace( c ) > 0 )then
 - turtle.select( c )
 - for t = c + 1 , 16 do
 - if turtle.compareTo( t ) and (turtle.getItemSpace( c ) > 0) then
 - faltante = turtle.getItemSpace( c )
 - turtle.select( t )
 - turtle.transferTo(c, faltante)
 - turtle.select( c )
 - end
 - end
 - end
 - end
 - for c = 1 , 15 do
 - if turtle.getItemCount( c ) == 0 then
 - for t = c + 1 , 16 do
 - if turtle.getItemCount( t ) > 0 then
 - turtle.select( t )
 - turtle.transferTo(c, turtle.getItemCount( t ))
 - turtle.select( c )
 - end
 - end
 - end
 - end
 - if slot > 0 and slot < 17 then
 - turtle.select( slot )
 - end
 - for c = 1 , 16 do
 - if turtle.getItemCount( c ) == 0 then
 - return true
 - end
 - end
 - return false
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment