← Back to Gallery

Loading 3D viewer…

_diag masks red vs blue

by Jorge Barbero

Dimensions
24×24×24
Blocks
436
Compute Time
0.3s
Generation Time
3.0s
Model
claude-opus-5
Created
September 7, 2026
Prompt

User Prompt

diagnostic: onlyMaterial mask behaviour with two placeholder materials

CraftScript Source
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);

Static Renders

_diag masks red vs blue isometric viewisometric
_diag masks red vs blue front viewfront
_diag masks red vs blue side viewside
_diag masks red vs blue back viewback
_diag masks red vs blue top viewtop