Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --distance for loading
- distance = ...
- if distance then
- distance = tonumber(distance)
- else
- distance = 35
- end
- --Counter for found lava springs
- lavaCnt = {0}
- local move = require("move")
- local inspect = require("inspect")
- local collectLava = require("collectLava")
- lavaArray = {"minecraft:lava"}
- -- mines one tunnel and comes back out
- function mineTunnel (remainingLength)
- if not (remainingLength == 0) then
- move.Forward()
- if inspect.Down(lavaArray) then
- collectLava.Bottom(lavaCnt)
- end
- mineTunnel(remainingLength - 1)
- move.Forward()
- else
- move.turnBack()
- end
- end
- mineTunnel(distance)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement