Advertisement
trinkmuetze

Untitled

Jul 31st, 2021
1,027
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement