Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cobblecount = 0
- local stackcount = 0
- local chestcount = 0
- local failed = false
- digblock = function()
- if turtle.dig() then
- cobblecount = cobblecount + 1
- else
- failed = true
- end
- end
- chestcheck = function()
- if stackcount >= 27 then
- chestcount = chestcount + 1
- stackcount = 0
- end
- end
- stackcheck = function()
- if cobblecount >= 64 then
- turtle.dropDown()
- stackcount = stackcount + 1
- cobblecount = 0
- end
- end
- printdata = function()
- clearterminal()
- print("Cobble jacked this session: ", newline)
- printchestcount()
- printstackcount()
- printblockcount()
- end
- clearterminal = function()
- term.clear()
- term.setCursorPos(1,1)
- end
- printchestcount = function()
- if chestcount > 1 then
- print(chestcount, " Full Chests", newline)
- elseif chestcount == 1 then
- print("1 Full Chest")
- end
- end
- printstackcount = function()
- if stackcount > 1 then
- print(stackcount, " Stacks", newline)
- elseif stackcount == 1 then
- print("1 Stack")
- end
- end
- printblockcount = function()
- if cobblecount > 1 then
- print(cobblecount, " Blocks", newline)
- elseif cobblecount == 1 then
- print("1 Block")
- end
- end
- jacksomecobble = function()
- while not failed do
- chestcheck()
- stackcheck()
- digblock()
- printdata()
- sleep(2)
- end
- end
- jacksomecobble()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement