Advertisement
Jeka47rus

jQuarry

May 30th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. fs.copy("disk/jSystem/jAPI","//jSystem/jAPI")
  2. os.loadAPI("jSystem/jAPI")
  3. local bedrock = false
  4.  
  5. local function bedrockD( ... )
  6.     local s,b = turtle.inspect()
  7.     local s1,b2 = turtle.inspectDown()
  8.     if s == true or s1 == true then
  9.         if b.name == "minecraft:bedrock" or b2.name == "minecraft:bedrock" then
  10.             bedrock = true
  11.         end
  12.     end
  13. end
  14.  
  15. local tf = true
  16. jAPI.move("down")
  17. sleep(3)
  18. jAPI.move("down")
  19.  
  20. while tf do
  21.     for i=1, 8 do
  22.         jAPI.dig()
  23.         if turtle.getItemCount(16) > 0 then
  24.         jAPI.chest()
  25.     end
  26.     end
  27.     turtle.digUp()
  28.     for i=1, 3 do
  29.         jAPI.move("down")
  30.     end
  31.     for i=1, 2 do
  32.         jAPI.rotate("right")
  33.     end
  34.     bedrockD()
  35.     if bedrock then
  36.         break
  37.     end
  38. end
  39.  
  40. jAPI.home()
  41. jAPI.chest()
  42. redstone.setOutput("top",true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement