This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
popdog15's profile picture

Tunnel+

Started by popdog15, 08 March 2014 - 01:52 AM
popdog15 #1
Posted 08 March 2014 - 02:52 AM
http://pastebin.com/5NyZQ7Kq
I know many, like myself, like to use the tunnel program on a turtle for mining purposes. Though, doing this has a lot of problems such as
  1. Running out of inventory
  2. You've got to retrieve the turtle after completion
As such, I've made tunnel+! It's merely an improved version of tunnel, I've re-written the whole code (only about 60 lines, pretty short).
I've changed it to:
  • Place a chest after 45 blocks, put all items in there (except those in the chest slot)
  • Come back when it's finished
I know it's not much, but to me at least it's far more useful than just basic "tunnel"


Usage:
To use it, after downloading it from pastebin, type " *the name of it on your turtle* * the number of blocks you want to do *" Just like original tunnel. If you've got any suggestions, feel free to comment.
Edited on 08 March 2014 - 02:12 AM
MostwantedRBX #2
Posted 09 March 2014 - 01:29 AM
Sweet! May I suggest adding refueling to the system? Also, letting people know you need an argument after the program name and what it is very important. I had to look in the code to figure out why it was trying to do division on a nil value. :)/> One more tip, if it can't go forward then to check if it has fuel, if so, then make it attack in front of it to clear mobs, it got confused when I stood in front of it. Other then that, great job!
Lyqyd #3
Posted 09 March 2014 - 01:49 AM
Moved to Turtle Programs.
lavablade02 #4
Posted 18 March 2014 - 01:29 AM
It will only copy args = {…
johnneijzen #5
Posted 26 March 2014 - 08:13 PM
You could do if last slot has item then run chest command unlike every 50 block

Examples like I did with two programs
http://pastebin.com/GxixXmy6 at line 80 to 89 simple version
http://pastebin.com/K1C5f2ni at line 113 to 130 more stable version this fix gravel bugs example if gravel is blocking turtle then it can't place chest and it spam on ground.