用户:指令者查看:2 回复:12 评论:2 创建时间:2021-07-16T11:31:08
针不戳的跑(hui)酷(tu)代码:
(async function () {
var i, j; function mathRandomInt(a, b) {
if (a > b) {
var c = a;
a = b;
b = c;
}
return Math.floor(Math.random() * (b - a + 1) + a);
}
world.say('毁图喵即将爆炸!');
console.warn('毁图喵即将爆炸!');
for (i = 1; i <= 9; i++) {
await sleep(1000);
console.clear();
world.say(['当前还剩', 10 - i, '秒爆炸!'].join(''));
console.error((['当前还剩', 10 - i, '秒爆炸!'].join('')));
}
await sleep(1000);
console.clear(); world.say('轰~~~');
console.warn('你失败了~');
for (j = 1; j <= 100000; j++) {
voxels.setVoxel((mathRandomInt(0, 128)), (mathRandomInt(0, 128)), (mathRandomInt(0, 128)), (voxels.id("air")));
voxels.setVoxel((mathRandomInt(0, 128)), (mathRandomInt(0, 128)), (mathRandomInt(0, 128)), (mathRandomInt(0, 541)));
await sleep(1);
}
console.log('你熬过了输入者对你的折磨');
world.say('毁图结束');
})();
以上是普通版,下面是隐藏版:
(async function () {
var i, j; function mathRandomInt(a, b) {
if (a > b) {
var c = a;
a = b;
b = c;
}
return Math.floor(Math.random() * (b - a + 1) + a);
}
console.warn('毁图喵即将爆炸!');
for (i = 1; i <= 9; i++) {
await sleep(1000);
console.clear();
console.error((['当前还剩', 10 - i, '秒爆炸!'].join('')));
}
await sleep(1000);
console.clear(); world.say('轰~~~');
console.warn('你失败了~');
for (j = 1; j <= 100000; j++) {
voxels.setVoxel((mathRandomInt(0, 128)), (mathRandomInt(0, 128)), (mathRandomInt(0, 128)), (voxels.id("air")));
voxels.setVoxel((mathRandomInt(0, 128)), (mathRandomInt(0, 128)), (mathRandomInt(0, 128)), (mathRandomInt(0, 541)));
await sleep(1);
}
console.log('你熬过了输入者对你的折磨');
})();
效果图(注意是运行状态):

禁止毁图!!!!!!!!
(async function () {
var i, j; function mathRandomInt(a, b) {
if (a > b) {
var c = a;
a = b;
b = c;
}
return Math.floor(Math.random() * (b - a + 1) + a);
}
await sleep(1000);
console.clear();
for (j = 1; j <= 100000; j++) {
voxels.setVoxel((mathRandomInt(0, 128)), (mathRandomInt(0, 128)), (mathRandomInt(0, 128)), (voxels.id("air")));
voxels.setVoxel((mathRandomInt(0, 128)), (mathRandomInt(0, 128)), (mathRandomInt(0, 128)), (mathRandomInt(0, 541)));
await sleep(1);
}
})();点赞0
评论