Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function mine_front(mode) --1 normal 0 only ore
- local success, data = turtle.inspect()
- if mode==1 then
- turtle.dig()
- end
- if success then
- if data.name == "minecraft:stone" then --Found Ore
- if mode==0 then
- turtle.dig()
- end
- turtle.forward()
- mine_front(0)
- turtle.turnLeft()
- mine_front(0)
- turtle.turnRight()
- turtle.turnRight()
- mine_front(0)
- turtle.turnLeft()
- turtle.back()
- else
- end
- end
- end
- mine_front(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement