var log = [];
function t(name, f) { try { f(); log.push('OK ' + name); } catch (e) { log.push('FAIL ' + name + ' :: ' + e); } }
t('patches-w', function () { var p = patches([{ block: 'grass_block', w: 70 }, { block: 'coarse_dirt', w: 18 }], 0.06, 4); pb(1, 1, 1, p(1, 1)); });
t('surface+zoneRect', function () {
var land = zoneRect(0, 0, 10, 10);
var h = hills({ base: 4, amp: 2, scale: 0.05, seed: 9 });
var pad = flatten(h, { x0: 2, z0: 2, x1: 8, z1: 8 }, 4, 3);
var gmat = patches([{ block: 'grass_block', w: 70 }, { block: 'coarse_dirt', w: 18 }], 0.06, 4);
surface(land, pad, gmat, { sub: 'dirt', deep: 'stone', depth: 3 });
});
t('surface-stringmat', function () {
var land2 = zoneRect(12, 0, 20, 10);
var h2 = hills({ base: 4, amp: 2, scale: 0.05, seed: 3 });
surface(land2, h2, 'grass_block', { sub: 'dirt', deep: 'stone', depth: 3 });
});
t('noisyScatter', function () {
noisyScatter(0, 6, 0, 10, 6, 10, [{ block: 'short_grass', weight: 60 }, { block: 'dandelion', weight: 14 }], 0.16);
});
t('rug', function () { rug(2, 6, 2, 4, 3, 'brown', 'red'); });
t('shelfWall', function () { shelfWall(2, 6, 12, 'south', 4, 2); });
t('lampPost', function () { lampPost(5, 6, 14, 3, 'oak_fence'); });
t('placeTree', function () { placeTree(8, 6, 16, 'oak'); });
t('staircase', function () { staircase(20, 20, 6, 12, 'south', { width: 2, material: 'spruce_stairs', rail: true, support: 'stripped_spruce_log' }); });
t('pb-state-barrel', function () { pb(25, 6, 2, 'barrel[facing=up]'); });
t('pb-ironchain', function () { pb(25, 6, 4, 'iron_chain[axis=y]'); });
t('gradientPalette-fill', function () {
var wp = gradientPalette(6, 12, [{ block: 'mud_bricks', from: 0 }, { block: 'bricks', from: 0.3 }, { block: 'granite', from: 0.82 }], { noise: 0.22 });
fill(26, 6, 6, 28, 12, 8, wp);
});
t('replaceMasked-pal', function () {
fill(26, 6, 10, 28, 8, 12, 'blue_wool');
var wp = gradientPalette(6, 12, [{ block: 'mud_bricks', from: 0 }, { block: 'bricks', from: 0.5 }], { noise: 0.2 });
replaceMasked(26, 6, 10, 28, 8, 12, wp, onlyMaterial('blue_wool'));
});
t('fill-fnpattern-ring', function () {
var pp = noisePalette([{ block: 'cobblestone', weight: 38 }, { block: 'andesite', weight: 20 }], { freq: 0.18 });
fill(2, 20, 2, 8, 20, 2, pp);
});
t('roofStair-palcall', function () {
var rm = noisePalette([{ block: 'brick_stairs', weight: 50 }, { block: 'granite_stairs', weight: 28 }], { freq: 0.14 });
roofStair(4, 22, 4, rm(4, 0, 4), 'west');
});
t('campfire', function () { ps(10, 20, 10, 'campfire[lit=true,facing=south]'); });
t('potted', function () { ps(12, 20, 10, 'potted_azure_bluet'); });
t('vine', function () { ps(14, 20, 10, 'vine[south=true]'); });
t('lantern-hanging', function () { pb(16, 22, 10, 'stone'); ps(16, 21, 10, 'lantern[hanging=true]'); });
t('chairStair', function () { chairStair(18, 20, 10, 'spruce_stairs', 'north'); });
t('lectern', function () { ps(20, 20, 10, 'lectern[facing=west]'); });
t('chest', function () { pb(22, 20, 10, 'chest[facing=south,type=single]'); });
t('pressureplate', function () { ps(24, 20, 10, 'dark_oak_pressure_plate'); });
t('cauldron', function () { ps(26, 20, 10, 'cauldron[level=2]'); });
t('wallsign', function () { ps(28, 20, 10, 'oak_wall_sign[facing=south]'); });
t('slabtop', function () { ps(2, 24, 2, 'polished_diorite_slab[type=bottom]'); ps(3, 24, 2, 'brick_slab[type=top]'); });
print(log.join('\n'));
← Back to Gallery
isometric
front
side
back
top