Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ---------------------
- v1.1
- Change log:
- 1.0 -
- + Creation
- + Scripting
- 1.1 -
- + Publishing
- ---------------------
- This is made for ComputerCraft 1.31+. It allows Mining Turtles to dig a 5x2 hole all the way to bedrock and fly back up again!
- Thanks for using and enjoy!
- Under the Create Commons license
- Made by YaYaBinks3
- ---------------------
- INSTRUCTIONS FOR USE;
- 1. Create a Mining Turtle on Minecraft, place it,
- 2. Open the Mining Turtle, give him 3 TORCHES AND MAKE SURE THEY ARE IN THE BOX THAT IS SELECTED (The box is at the right hand side) and then type 'id',
- 3. Minimize Minecraft and open up Documents, next go to %appdata%\Roaming\.minecraft\saves\YOURLEVEL\computer
- 4. Find the file called the number that was specified when you typed 'id',
- 5. Double click the file,
- 6. Add a new text document,
- 7. Copy the code below, and paste it in,
- 8. Maximize Minecraft
- 9. Go to the Mining Turtle
- 10. Type in 'rename dig.txt dig'
- 11. Type in 'dig'
- 12. Now watch it do it's thing.
- ---------------------
- --]]
- --Quite simple, but yet effective.
- while true do
- for i=1, 120 do --The real bedrock layer is 127, but 120 so he doesn't clash with the bedrock and stop working.
- turtle.up() --Goes up.
- turtle.dig() --Digs forward
- turtle.down() --Goes down
- turtle.dig() --Digs forward
- turtle.place() --Places a torch. (Remember to give him torches.)
- --Now, you may wonder what that does. The Mining Turtle basicly digs a hole, places a torch and when that loops the Mining Turtle removes the torch, digs a hole below where the other torch was and places a new one, then carries on.
- turtle.turnRight() --Turns right.
- turtle.digDown() --Digs down.
- turtle.down() --Goes down.
- turtle.dig() --(Here comes the real thing) Digs forward
- turtle.forward() --Goes forward
- turtle.dig() --Do I have to type any more?
- turtle.forward()
- turtle.dig()
- turtle.forward()
- turtle.dig()
- turtle.forward()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.dig()
- turtle.forward()
- turtle.dig()
- turtle.forward()
- turtle.dig()
- turtle.forward()
- turtle.dig()
- turtle.forward()
- turtle.turnRight() --Back to where he started, so then he turns right to start again.
- turtle.forward() --Goes finally forward!
- end
- --Once he's reached the bedrock layer, he flies back up.
- for i=1,120 do
- turtle.up()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement