Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fs.copy("disk/jSystem/jAPI","//jSystem/jAPI")
- os.loadAPI("jSystem/jAPI")
- local bedrock = false
- local function bedrockD( ... )
- local s,b = turtle.inspect()
- local s1,b2 = turtle.inspectDown()
- if s == true or s1 == true then
- if b.name == "minecraft:bedrock" or b2.name == "minecraft:bedrock" then
- bedrock = true
- end
- end
- end
- local tf = true
- jAPI.move("down")
- sleep(3)
- jAPI.move("down")
- while tf do
- for i=1, 8 do
- jAPI.dig()
- if turtle.getItemCount(16) > 0 then
- jAPI.chest()
- end
- end
- turtle.digUp()
- for i=1, 3 do
- jAPI.move("down")
- end
- for i=1, 2 do
- jAPI.rotate("right")
- end
- bedrockD()
- if bedrock then
- break
- end
- end
- jAPI.home()
- jAPI.chest()
- redstone.setOutput("top",true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement