Here is a big program I've made.
First, it was to train myself using ComputerCraft but I expanded it a lot and, I think, it can be very usefull so I share it !
I'll post more screenshots later but you already can see what it does !
On the following picture, you can see the default program (without any config, it does a 3x3x10 tunnel and fills all walls. It also come back to start when it needs to empty itself and when it need more filling blocks.
If you want it to empty itself, you have to put a chest behind its start position.
Screenshots :
Spoiler
A tunnel !Bridge :
My config for building a stone room !
There also is a progress bar !!
Current options are :
- Tunnel width : Tunnel width !
- Tunnel height : Tunnel height !
- Tunnel length : Tunnel length !
- Run in dig only mode ? : If 'y', it won't care about walls, ceiling and floor. It'll only dig !
–> Fill left wall ? : If 'y', it will put blocks on the left wall.
–> Fill right wall ? : Same but right wall
–> Fill back wall ? : Same but back wall
–> Fill ceiling ? : Same but ceiling
–> Fill floor ? : Same but floor
–> Go back when I need filling blocks ? If there are less than 5 filling blocks, must it go back to start and wait for you to give it more blocks ?
–> How many slots must I keep for filling blocks ? : It will try (as possible) to keep that number of slots for filling blocks. (Example, if you put cobble and it digs cobble, it will be able to re-use it. Moreover, if it is full of cobble and you put 4 slots to keep, it will empty the 12 in the chest.
- Should I empty myself when I'm full ? : If 'y', the turtle will go back to start and empty itself in the chest. (Chest must be behind it at launching !)
- Should I send infos on rednet ? : If 'y', turtle will send these messages "Need empty", "Empty done", "Need block", "Going back to work", "Launching" and "Done".
("–>" Means dependancy : If you say "Dig only", it won't ask you everything)
If you look at the turtle screen while it is running, you can also see a progress bar to tell you about its… Progress !
I did it in 3 days so sorry if it need more options. If you have any idea of improvement, tell me ! I'll do it as quick as possible ! ;)/>/>
TODO list :
Spoiler
- Place torches !!!!- Refuel itself.
- I don't really know so tell me ! :D/>/>
Links :
Spoiler
v2.2.2 : http://pastebin.com/HPyPaNkL- Fixed bug : When the turtle returns from start to work, it uses a better path.
v2.2.1 : http://pastebin.com/CA08dhhG
- Fixed bug : When there is gravel and it has to replace it. It failed.
v2.2 : http://pastebin.com/H6KhC9Wn
- Fixed some bugs.
v2.1 : http://pastebin.com/At8WF41E
- Fixed bug when dig only. It tried to find blocks
- Fixed message "Fill walls ?" -> "Dig only ?"
v2 : http://pastebin.com/YFMGerc8
I hope it will be usefull !
(By the way, if you find any bug, tell me !)
Edit :
———————————
Added in TODO list :
- Place torches !!!!
- Refuel itself.
———————————
More screenshots !!
———————————