SHOW:
|
|
- or go back to the newest paste.
| 1 | function counter() | |
| 2 | local i = 0 | |
| 3 | return function() i = i + 1 return i end | |
| 4 | end | |
| 5 | function modStr(num) | |
| 6 | if num < 10 then | |
| 7 | return "0" .. num | |
| 8 | else | |
| 9 | return num | |
| 10 | end | |
| 11 | end | |
| 12 | while true do | |
| 13 | if turtle.detect() then | |
| 14 | turtle.dig() | |
| 15 | term.clear() | |
| 16 | term.setCursorPos(1,1) | |
| 17 | local total = 0 | |
| 18 | for i=1,16,1 do | |
| 19 | total = total + turtle.getItemCount(i) | |
| 20 | end | |
| 21 | print("Lacznie: " .. total)
| |
| 22 | print("-----------------")
| |
| 23 | local iterator = counter() | |
| 24 | - | print(" ___ ___ ___ ")
|
| 24 | + | print(" ___ ___ ___ ___ ")
|
| 25 | - | print("|" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |")
|
| 25 | + | print("|" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |")
|
| 26 | - | print("|___|___|___|")
|
| 26 | + | print("|___|___|___|___|")
|
| 27 | - | print("|" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |")
|
| 27 | + | print("|" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |")
|
| 28 | - | print("|---|---|---|")
|
| 28 | + | print("|---|---|---|---|")
|
| 29 | - | print("|" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |")
|
| 29 | + | print("|" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |" .. modStr(turtle.getItemCount(iterator())) .. " |")
|
| 30 | - | print("|___|___|___|")
|
| 30 | + | print("|___|___|___|___|")
|
| 31 | print(" ")
| |
| 32 | print("-----------------")
| |
| 33 | print("Generator Cobblestone")
| |
| 34 | print(" by se7en")
| |
| 35 | end | |
| 36 | totalcount = turtle.getItemCount(16) | |
| 37 | if totalcount == 64 then | |
| 38 | term.clear() | |
| 39 | term.setCursorPos(1,1) | |
| 40 | - | print("Wyrzucanie stacku")
|
| 40 | + | print("Wyrzucanie stackow")
|
| 41 | print("...Prosze czekac.")
| |
| 42 | sleep(1) | |
| 43 | for i=1,16 do | |
| 44 | turtle.select(i) | |
| 45 | turtle.drop() | |
| 46 | end | |
| 47 | turtle.select(1) | |
| 48 | end | |
| 49 | end |