Replacing Blocks In A Certain Radius Of Another

Status
Resolved
Issue description

i want to be able to set all grass blocks withing a certain radius of another block to a different type of block, and all dirt blocks with in a certain radius of that block to another, like the "replacenear" command from world edit. i have tried to find a way to do this without manually placing in the location of each block, (which would be too time consuming), and have not been able to find a work around. please help.

Issue comments

thank you! i used the fill command in a procedure to do this in a 15*15*15 area with this command: /fill ~15 ~15 ~15 ~-15 ~-15 ~-15 The_Color_Out_Of_Space:InfectedGrass 0 replace grass 

 

(note that you have to add your mod name and a : before the block name or it will not work)

Yes, one needs to use the namespace, but please use lowercase namespaces or things might break badly.