Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Miner By Feddis08")
- print("Starting Mining")
- count = 0
- impulse = true
- turtle.refuel(1)
- function dig()
- if turtle.detect() then
- turtle.dig()
- end
- turtle.forward()
- if turtle.detectUp() then
- turtle.digUp()
- end
- end
- function filter()
- itemslot = 0
- while itemslot == 16 do
- itemslot = itemslot + 1
- if turtle.getItemDetail(itemslot) == "cobblestone" then
- turtle.drop(itemslot)
- end
- end
- end
- while(true) do
- if count == 16 then
- turtle.turnLeft()
- dig()
- dig()
- dig()
- dig()
- turtle.turnLeft()
- end
- if count == 32 then
- turtle.turnRight()
- dig()
- dig()
- dig()
- dig()
- turtle.turnRight()
- count = 0
- end
- dig()
- filter()
- count = count + 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement