Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- -- Copyright 2013 MigukNamja
- -- miguknamja@gmail.com
- --
- -- Last Updated : 2013-10-14
- --
- -- MigukNamja's Infinite Cobblestone Breaker Program
- -- Requires a digging (diamond pickaxe-equipped) turtle
- --
- --
- -- Drop-off everything in specified slot
- -- Preconditions : turtle is beneath the drop-off chest
- --
- -- Returns false if it could not drop off
- --
- function dropOff(slot)
- if turtle.getItemCount(slot) > 0 then
- turtle.select(slot)
- if not turtle.dropUp() then
- print( "Could not place into container above" )
- return false
- end
- end
- return true
- end
- -- Use 1st slot only
- turtle.select(1)
- gGuessBlocks = 0
- --
- -- Break blocks down for forever
- -- Place blocks in chest above when have full stack of 64
- --
- while 1 do
- if turtle.digDown() then
- gGuessBlocks = gGuessBlocks + 1
- if gGuessBlocks == 64 then
- dropOff(1)
- gGuessBlocks = 0
- end
- end
- sleep(1.5) -- sleep long enough for the cobblestone to form
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement