Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- help = args[1]
- if help == "help" then
- print("==== Obsidian Miner v1.3 ====")
- print("By Zach Dyer")
- print("Just relax let Obsidian Miner mine that pesky obsidian for you.")
- print(" ")
- print("USAGE: ")
- print("1. Place obsidian in the first slot.")
- print(" ")
- print("2. Set turtle by any corner of an obsidian vein and type 'obsidian'")
- else
- local done = false
- local tries = 0
- if(turtle.compare() == false) then
- print("Please add obsidian to the first slot.")
- done = true
- end
- while done == false do
- if(turtle.compare()) then
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- tries = 0
- else
- turtle.turnLeft()
- tries = tries + 1
- if tries == 5 then
- turtle.back()
- end
- if tries > 8 then
- done = true
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment