turn your deserts into meadows, change dirt beaches to sand beaches, explore caves made of wood!
What is it?
Terraform is a ComputerCraft Turtle program that digs out blocks and replaces them with the blocks YOU want, keeping the landscape's and caves shape while mining valuable resources at the same time.
Usage and parameters
terra [cycles] [dump] [quick [depth]]
All params are optional. They can be put in any in almost any order; almost, because 'quick' will interpret following it number as the depth to dig.
cycles - number. How many 'steps' infront of the turtle should be terraformed, i.e.: terra 15. If the number of steps is not given, the program will work in supervision mode, requiring conformation for each new cycle.
dump - literal string. Using this param will make the turtle throw up
quick - quick mode, by default it will dig just 5 blocks deep. Useful if you want to quickly replace the top layers and do mining by other means or not at all.
depth - number that comes after 'quick', lets you specify the depth of the quick mode, i.e.: terra 64 quick 3 will go for 64 cycles (or steps) replacing blocks to 3rd layer deep on it's path.
Configuration
Slot 1 - block used for the surface layer
Slot 2 - 'subsurface' block, placed on relative depth from 2 to 4, that's 3 layers.
Slot 3, 4 - 'filler' blocks, those will be used to replace everything else.
Default behavior
• Turtle won't start a terraform cycle unless the fuel level is at least 600. This was made on purpose so that turtle would not run out of fuel in the middle of a cycle deep in a hole (or a lava lake). I took this aproach because coming up with a proper and effective scheme for correct and constant fuel calculations was too mindbending.
• Turtle will try to make the best out of items in it's inventory. If it goes out of a particular block, it will try to restock it out of stuff it dug out.
• The program was written to operate without any supervision as much as possible. The only time the turtle will need your attention is when it goes into pitstop mode. It does that only when:
- fuel level drops below 600 after finishing a cycle
- it runs out of config blocks and cannot restock from internal inventory
- it's inventory is full.
• After a finished cycle the turtle will do one "step" forward, meaning it won't just move straight forward, but will position itself as close to the ground as possible, which means it will climb mountains and go down valleys, removing the need for manual height positioning. Be sure to remove tall grass, flowers, torches, redstones and other types of non-solid blocks, as they are percieved and mapped by the turtle as normal blocks. This can't be dealt with without block id recognition (and we know vanilla CC won't get this feature ever).
Why was it made? A piece of (possibly boring) history.
Spoiler
Future?
Spoiler
Download
MediaFire
Pastebin
Copyright
Do what you want with it, just be sure to give me some credit if you use my code in your project.











