Advertisement
Guest User

MC Turtle ReinforcedStoneMiner

a guest
Feb 23rd, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. turtle.refuel()
  2. success, data = turtle.inspect()
  3. while true do
  4.     if success then
  5.         print("found block: ", data.name)
  6.     else
  7.         print("found air")
  8.     end
  9.     counter = 0
  10.     while not success or data.name == "minecraft:cobblestone" do
  11.         turtle.turnLeft()
  12.         success, data = turtle.inspect()
  13.         counter += 1
  14.         if counter == 4 then
  15.             break
  16.         end
  17.     end
  18.     -- should be a block we'd want to mine
  19.     turtle.dig()
  20.     turtle.forward()
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement