Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bedrockChecker()
- booly, data = turtle.inspectDown()
- if (data.name) == "minecraft:bedrock" then
- return 1
- else
- return 0
- end
- end
- function digDown()
- isBedrock = bedrockChecker()
- i = 0
- while isBedrock == 0 do
- turtle.digDown()
- turtle.down()
- i = i + 1
- isBedrock = bedrockChecker()
- end
- repeat
- turtle.up()
- i = i - 1
- until (i == 0)
- end
- function moveForward()
- turtle.dig()
- turtle.forward()
- end
- function chunkQuarryLength(length)
- for s = length, 1, -1
- do
- digDown()
- moveForward()
- print(s)
- end
- end
- function fullQuarry(size)
- for w = size, 1, -1
- do
- chunkQuarryLength(size)
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- for a = size, 1, -1
- do
- turtle.back()
- end
- end
- end
- turtle.refuel()
- fullQuarry(16)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement