Posted 11 April 2012 - 12:45 AM
This is code for a simple "square" I made. It has an option to continue mining upwards, so you don't have to shut it down and then restart.
It doesn't mine the insides though, as this was just seeing what I could do. You can mess with the code and make it your own, if you're going to show it to someone else, please tell them it was made by me. You don't have to tell them it was made by me, I would just prefer it if you did.
It doesn't mine the insides though, as this was just seeing what I could do. You can mess with the code and make it your own, if you're going to show it to someone else, please tell them it was made by me. You don't have to tell them it was made by me, I would just prefer it if you did.
Spoiler
-- Made by EmptyK
term.clear()
term.setCursorPos(1,1)
print("You have chosen to mine!")
sleep(2)
term.clear()
term.setCursorPos(1,1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.turnRight(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.turnRight(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.turnRight(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.forward(1)
turtle.dig(1)
turtle.forward(1)
turtle.digUp(1)
turtle.turnRight(1)
sleep(1)
print("Would you like to go up more?")
input = read()
yes = "Yes"
no = "No"
if input == yes then
print("Mining some more!")
sleep(1)
turtle.up(1)
turtle.up(1)
shell.run("Mine")
end
if input == no then
print("Ok, shutting down")
sleep(3)
os.shutdown()
end