Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- os.loadAPI("JApi")
- function DropCobble()
- for it = 1, 15 do
- turtle.select(it)
- if turtle.compareTo(16) == true then
- turtle.drop()
- end --endif
- end
- end --fend
- function deeg(x, y, z)
- for depth = 1, z do
- JApi.digAdv("front", 1)
- for height = 1, y do
- if height % 2 == 1 then
- JApi.digAdv("right", x - 1)
- else
- JApi.digAdv("left", x - 1)
- end
- if height < tonumber(y) then
- JApi.digAdv("top", 1)
- end
- end
- JApi.moveAdv("bottom", y)
- if tonumber(y) % 2 == 1 then
- JApi.moveAdv("left", x)
- end --endif
- if tonumber(depth) % 5 == 0 then
- DropCobble()
- end --endif
- end
- end
- deeg(args[1], args[2], args[3])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement