Guest User

startup.lua

a guest
Aug 17th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. mined = 0
  2. moved = 0
  3. while 1<2 do
  4.  if turtle.detectUp() then
  5.   turtle.digUp()
  6.   mined = mined + 1
  7.  end
  8.  if turtle.getItemCount()>0 then
  9.   moved = moved + 1
  10.   turtle.drop()
  11.  end
  12.  sleep(1)
  13.  print("Mined: "..tostring(mined))
  14.  print("Moved: "..tostring(moved))
  15. end
Advertisement
Add Comment
Please, Sign In to add comment