MatthewGB

AutoMine2

Jul 21st, 2020
1,824
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. function sort()
  2.     for i=1,14,1 do
  3.         turtle.select(i)
  4.         block = turtle.getItemDetail()
  5.         if block != nil then
  6.             if block.name == "minecraft:netherrack" then
  7.                 turtle.drop()
  8.             end
  9.         end
  10.     end
  11. end
  12. x = 0
  13. y = 0
  14. while true do
  15.     turtle.select(15)
  16.     turtle.placeDown()
  17.     turtle.forward()
  18.     turtle.select(16)
  19.     turtle.placeDown()
  20.     sleep(5)
  21.     sort()
  22.     turtle.select(16)
  23.     turtle.digDown()
  24.     turtle.turnRight()
  25.     turtle.turnRight()
  26.     turtle.forward()
  27.     turtle.turnLeft()
  28.     turtle.forward()
  29.     turtle.turnLeft()
  30.     x = x + 1
  31.     print(x)
  32. end
Advertisement
Add Comment
Please, Sign In to add comment