Advertisement
duncan9322

generator.lua

Mar 19th, 2021
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. -- mines cobblestone
  2. while true do
  3.  success, info = turtle.inspect()
  4.  if success and (info.name=="minecraft:cobblestone") then
  5.   turtle.dig()
  6.  elseif info.name then
  7.   print(info.name)
  8.   sleep(1)
  9.  end
  10.  itemcount = turtle.getItemCount(16)
  11.  if itemcount == 64 then
  12.   for i=1,16 do
  13.    turtle.select(i)
  14.    turtle.dropUp()
  15.   end
  16.   turtle.select(1)
  17.  end
  18. end
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement