Commandcracker

Cobble

Oct 18th, 2021
741
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local TotalCobble   = 0
  2. local CurrentCobble = 0
  3. local x , y         = term.getCursorPos()
  4.  
  5. while true do
  6.     if turtle.detect() then
  7.         turtle.dig()
  8.         CurrentCobble   = CurrentCobble + 1
  9.         TotalCobble     = TotalCobble   + 1
  10.         term.setCursorPos(x,y)
  11.         term.write("Cobble Farmed: " .. TotalCobble)
  12.     end
  13.     if CurrentCobble >= 64 then
  14.         turtle.dropUp()
  15.         CurrentCobble = 0
  16.     end
  17.     sleep(.001)
  18. end
  19.  
RAW Paste Data