Advertisement
Antonderman

Untitled

May 28th, 2023
627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | None | 0 0
  1. --- Super Magic for certus quartz mining, don't mind it
  2.  
  3. local machineId = os.getComputerID()
  4. os.setComputerLabel("QuartzMiner-ID"..machineId)
  5.  
  6. print("Super Quartz Miner for Turtles 10000 is up and running.")
  7.  
  8. while true do
  9.   local successfulFront, dataFront = turtle.inspect()
  10.  
  11.   if successfulFront then
  12.       if dataFront.name == "elementalcraft:springaline_cluster" then
  13.         print("quartz detected")
  14.         turtle.dig()
  15.       end
  16.   end
  17.  
  18.   local successfulUp, dataUp = turtle.inspectUp()
  19.  
  20.   if successfulUp then
  21.       if dataUp.name == "elementalcraft:springaline_cluster" then
  22.         print("quartz detected")
  23.         turtle.digUp()
  24.       end
  25.   end
  26.  
  27.   local successfulDown, dataDown = turtle.inspectDown()
  28.  
  29.   if successfulDown then
  30.       if dataDown.name == "elementalcraft:springaline_cluster" then
  31.         print("quartz detected")
  32.         turtle.digDown()
  33.       end
  34.   end
  35.  
  36.   os.sleep(1)
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement