Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - --Power by Bardiel-- [email protected]
 - --http://www.youtube.com/user/BardielHachiSan
 - local tArgs = { ... }
 - if tonumber (tArgs[1]) then
 - slot = tonumber (tArgs[1])
 - else
 - slot = -1
 - end
 - arriba = false
 - if turtle.detectDown() then
 - for c = 1 , 15 do
 - if ( turtle.getItemCount( c ) > 0 ) and ( turtle.getItemSpace( c ) > 0 )then
 - turtle.select( c )
 - siguiente = c + 1
 - for t = siguiente , 16 do
 - if turtle.compareTo( t ) and (turtle.getItemSpace( c ) > 0) then
 - faltante = turtle.getItemSpace( c )
 - turtle.select( t )
 - if not arriba then
 - turtle.up()
 - arriba = true
 - end
 - turtle.dropDown(faltante)
 - turtle.select( c )
 - turtle.suckDown()
 - end
 - end
 - if arriba then
 - turtle.down()
 - arriba = false
 - end
 - end
 - end
 - else
 - write ("Debo tener suelo debajo de mi para realizar esta tarea!/n")
 - 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
 - --Power by Bardiel-- [email protected]
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment