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

Chunk Ore Drainer

Started by jpzg, 20 June 2013 - 11:49 AM
jpzg #1
Posted 20 June 2013 - 01:49 PM
This is a program I made for the purpose of taking all the ores out of a chunk and putting them somewhere else.
It goes from layer 1 to layer 80, checking for ores. If it finds one, it is duplicated to a storage chunk and the original is turned into air.

*REQUIRES IMMIBIS PERIPHERALS*

It is currently compatible with ores from Thermal Expansion, Basic Components, and Atomic Science. You can add more if you want, just add the name and ID to the ore dictionary.

Pastebin: http://pastebin.com/bk2Av4U4

Pictures:

Cave before mining:
https://www.dropbox....20_07.38.56.png
Mined cave:
https://www.dropbox....20_08.15.59.png
Empty storage chunk:
https://www.dropbox....20_07.39.25.png
Full storage chunk:
https://www.dropbox....20_07.55.11.png
Program UI:
https://www.dropbox....20_07.54.53.png

If you find bugs, let me know. If you want to, improve this and post it somewhere else yourself (or here, I'll include your changes). Then post a link here.
Fenthis #2
Posted 20 June 2013 - 03:38 PM
You might want to mention in the original post that this requires the adventure map peripheral and that it's just about as far from a "legit" tool as you can get. :)/>
Sashi #3
Posted 26 June 2013 - 01:20 PM
But…. Why?
oostwolder #4
Posted 17 July 2013 - 05:50 PM
tutorial please i get a error if i start the program

attempt to index ? (a nil value)

thanks
1lann #5
Posted 17 July 2013 - 10:37 PM
tutorial please i get a error if i start the program attempt to index ? (a nil value) thanks
An error without a line number isn't that helpful…
Anyways it's most probably because you don't have the adventure map peripheral on the bottom of the computer, and you might as well use worldedit.
jpzg #6
Posted 30 August 2013 - 12:21 AM
Yeah, it is pretty useless. I stopped doing anything with this a while ago. It could be turned into a tool for gathering info about a chunk's ore content, though.