User Prompt
diagnostic: onlyMaterial mask behaviour with two placeholder materials
fill(2, 2, 2, 6, 6, 6, "blue_wool");
fill(10, 2, 2, 14, 6, 6, "red_wool");
makeSphere(18, 12, 12, "red_wool", 4, true);
var a = clearMasked(14, 0, 6, 23, 11, 20, onlyMaterial("red_wool"));
print("clear red under sphere = " + a);
var bcount = replaceMasked(0, 0, 0, 23, 23, 23, "stone", onlyMaterial("blue_wool"));
print("replace blue = " + bcount);
var rcount = replaceMasked(0, 0, 0, 23, 23, 23, "gold_block", onlyMaterial("red_wool"));
print("replace red = " + rcount);
var np = noisePalette([{block:"glass",weight:70},{block:"white_stained_glass",weight:30}], {freq:0.2, seed:3});
var pcount = replaceMasked(0, 0, 0, 23, 23, 23, np, onlyMaterial("gold_block"));
print("replace gold with noisePalette = " + pcount);