Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Diging Cobblestone")
- function dig()
- while true do
- turtle.dig()
- sleep(0.2)
- end
- end
- function refuel()
- while true do
- shell.run("refuel all")
- sleep(0.1)
- end
- end
- function drop()
- drop = 0
- while true do
- for i = 1,16 do
- drop = drop + 1
- if drop == 17 then
- drop = 1
- end
- turtle.select(drop)
- icount = turtle.getItemCount()
- if icount >= 1 == true then
- local item = turtle.getItemDetail()
- if item.name == "minecraft:coal" == false then
- turtle.drop()
- end
- end
- end
- end
- end
- parallel.waitForAll(dig,drop,refuel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement