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

What would I use for removing all of one kind of block from an area?

Started by Clumby, 06 November 2016 - 12:14 AM
Clumby #1
Posted 06 November 2016 - 01:14 AM
So recently I built a giant glass dome under water.

I used Stacks and Stacks of sponge, but now they have all been left behind.

I was wandering if there is a computer craft script I could use to automatically mine all of the sponge, without any of the glass?

Thanks in advance!
EveryOS #2
Posted 06 November 2016 - 01:43 AM
First, you would have to either use a turtle or a command computer. Sadly, there are not commands for that. Turtles, however, support mining and detecting type of blocks. So you can modify the dig program to check the block type.
Wergat #3
Posted 06 November 2016 - 02:10 PM
Sadly, there are not commands for that.
You can use the /fill command to replace certain types of blocks.
fill <x1> <y1> <z1> <x2> <y2> <z2> <TileName> <dataValue> replace [replaceTileName] [replaceDataValue]
Clumby #4
Posted 06 November 2016 - 04:58 PM
Replacing a block with air is certainly a clever suggestion. Will have to give it a go. Thanks very much!