Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nCobbleStoneCount = 0
- local function dropAll()
- turtle.turnRight(); turtle.turnRight()
- for i=1, 9 do
- turtle.select( i ); turtle.drop( 64 )
- end
- turtle.select( 1 )
- turtle.turnLeft(); turtle.turnLeft()
- end
- local function getCobbleAmount()
- turtle.select( 1 )
- for i=1, 9 do
- if turtle.compare() then
- nCobbleStoneCount = nCobbleStoneCount + turtle.getItemCount( i )
- end
- end
- for i=1, 9 do -- Reselect the slot that can still be added to.
- if turtle.getItemCount( i ) ~= 64 then turtle.select( i ); return end
- end
- end
- while nCobbleStoneCount ~= 576 then -- 576 is the maximum amount of blocks that can be held by a turtle. 9 slots of 64 = 576.
- getCobbleAmount() -- Reload the amount of cobblestone in the inventory.
- if turtle.detect() then turtle.dig() end
- end
- dropAll()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement