Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --A sample way to use the mining system.
- --Designed to be used with Thermal Dynamics piping and a retrieval node.
- function forward()
- if turtle.detect() == true then
- turtle.dig()
- end
- while turtle.attack() == true do
- sleep(0.5)
- end
- repeat
- turtle.attack()
- until turtle.forward() == true
- end
- while turtle.getFuelLevel() > 150 and turtle.getItemCount(16) >= 3 do
- shell.run("mine") --Replace this with whatever you name the main mine program
- shell.run("waitforemptyinventory") --Replace this with whatever you name the clear inventory program
- turtle.select(16) --Slot that contains your itemducts.
- forward()
- turtle.placeUp()
- forward()
- turtle.placeUp()
- turtle.turnRight()
- forward()
- turtle.placeUp()
- turtle.turnLeft()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement