trinkmuetze

Untitled

Jul 31st, 2021
750
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2.     if turtle.detect() then
  3.         turtle.dig()
  4.  
  5.         term.clear()
  6.         term.setCursorPos(1,1)
  7.  
  8.         local total = 0
  9.         for i=1, 16, 1 do
  10.             total = total + turtle.getItemCount(i)
  11.         end
  12.  
  13.         print("Total: " .. total)
  14.     end
  15. end
RAW Paste Data