mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-06-30 21:55:25 +02:00
50 lines
No EOL
2.4 KiB
JavaScript
50 lines
No EOL
2.4 KiB
JavaScript
(async (bot) => {
|
|
|
|
|
|
// Double-checking and placing all specific missing blocks for Level 3 with precise coordinates.
|
|
|
|
const blockCoordinates = [
|
|
{ type: 'quartz_block', positions: [
|
|
[149, -57, -168], [150, -57, -168], [151, -57, -168], [152, -57, -168],
|
|
[149, -57, -167], [150, -57, -167], [151, -57, -167], [152, -57, -167],
|
|
[154, -57, -167], [155, -57, -167], [156, -57, -167],
|
|
[149, -57, -166], [150, -57, -166], [151, -57, -166], [152, -57, -166], [153, -57, -166],
|
|
[149, -57, -165], [150, -57, -165], [151, -57, -165], [152, -57, -165],
|
|
[149, -57, -164], [149, -57, -163], [150, -57, -163], [151, -57, -163], [152, -57, -163]
|
|
]},
|
|
{ type: 'glass', positions: [
|
|
[154, -57, -166], [155, -57, -166], [156, -57, -166],
|
|
[150, -57, -165], [151, -57, -165], [152, -57, -165],
|
|
[150, -57, -164], [151, -57, -164], [152, -57, -164]
|
|
]},
|
|
{ type: 'stone', positions: [
|
|
[157, -57, -168], [157, -57, -167], [157, -57, -166],
|
|
[157, -57, -165], [156, -57, -164], [157, -57, -164],
|
|
[157, -57, -163], [157, -57, -162], [157, -57, -161],
|
|
[157, -57, -160], [157, -57, -159], [157, -57, -158],
|
|
[157, -57, -157],
|
|
[149, -57, -162], [150, -57, -162], [151, -57, -162], [154, -57, -162],
|
|
[149, -57, -161], [150, -57, -161], [151, -57, -161], [152, -57, -161],
|
|
[149, -57, -160], [150, -57, -160], [151, -57, -160], [152, -57, -160],
|
|
[149, -57, -159], [150, -57, -159], [151, -57, -159], [152, -57, -159],
|
|
[149, -57, -158], [150, -57, -158], [151, -57, -158], [152, -57, -158],
|
|
[149, -57, -157], [150, -57, -157], [151, -57, -157], [152, -57, -157],
|
|
[149, -57, -156], [150, -57, -156], [151, -57, -156], [152, -57, -156],
|
|
[153, -57, -156], [154, -57, -156]
|
|
]}
|
|
]; if(bot.interrupt_code) {log(bot, "Code interrupted.");return;}
|
|
|
|
// Function to place blocks at specific positions
|
|
async function placeBlocks() {
|
|
for (let block of blockCoordinates) {
|
|
for (let pos of block.positions) {
|
|
await bot.world.setBlock(pos[0], pos[1], pos[2], { name: block.type }); if(bot.interrupt_code) {log(bot, "Code interrupted.");return;}
|
|
}
|
|
}
|
|
}
|
|
|
|
await placeBlocks();
|
|
|
|
log(bot, 'Code finished.');
|
|
|
|
}) |