This commit is contained in:
David Allemang
2026-07-04 13:24:41 -04:00
parent a92ac6d736
commit 9e05d39044
3 changed files with 75 additions and 2 deletions

View File

@@ -128,6 +128,40 @@
// Fetch and build everything concurrently!
await engine.updateAll();
function set0() {
world2.setBlock('minecraft:sticky_piston', 2, 0, 2, {facing: 'east', extended: 'false'});
world2.setBlock('minecraft:redstone_block', 3, 0, 2);
world2.removeBlock(2.5, 0, 2);
world2.removeBlock(3.5, 0, 2);
setTimeout(set1, 250)
}
function set1() {
world2.setBlock('minecraft:sticky_piston', 2, 0, 2, {facing: 'east', extended: 'true'});
world2.removeBlock(3, 0, 2)
world2.setBlock('minecraft:piston_head', 2.5, 0, 2, {facing: 'east', short: 'true', type: 'sticky'});
world2.setBlock('minecraft:redstone_block', 3.5, 0, 2);
setTimeout(set2, 250)
}
function set2() {
world2.setBlock('minecraft:piston_head', 3, 0, 2, {facing: 'east', short: 'false', type: 'sticky'});
world2.removeBlock(2.5, 0, 2);
world2.removeBlock(3.5, 0, 2);
world2.setBlock('minecraft:redstone_block', 4, 0, 2);
setTimeout(set3, 250)
}
function set3() {
world2.removeBlock(4, 0, 2)
world2.removeBlock(3, 0, 2)
world2.setBlock('minecraft:piston_head', 2.5, 0, 2, {facing: 'east', short: 'true', type: 'sticky'});
world2.setBlock('minecraft:redstone_block', 3.5, 0, 2);
setTimeout(set0, 250)
}
setTimeout(set3, 1000)
} catch (err) {
console.error("Renderer Initialization Failed:", err);
}