猫史档案馆


有没有大佬能把这一坨给简化

用户:小屑鹿小屑鹿查看:13 回复:6 评论:13 创建时间:2023-01-10T16:04:38


QwQ

async function left(){
    while(true){
        voxels.setVoxel(116,19,99,0)
        await sleep(250)
        voxels.setVoxel(115,19,99,0)
        await sleep(250)
        voxels.setVoxel(114,19,99,0)
        await sleep(250)
        voxels.setVoxel(113,18,99,0)
        voxels.setVoxel(116,19,99,391)
        await sleep(250)
        voxels.setVoxel(112,18,99,0)
        voxels.setVoxel(115,19,99,391)
        await sleep(250)
        voxels.setVoxel(111,18,99,0)
        voxels.setVoxel(114,19,99,391)
        await sleep(250)
        voxels.setVoxel(110,17,99,0)
        voxels.setVoxel(113,18,99,391)
        await sleep(250)
        voxels.setVoxel(109,17,99,0)
        voxels.setVoxel(112,18,99,391)
        await sleep(250)
        voxels.setVoxel(108,17,99,0)
        voxels.setVoxel(111,18,99,391)
        await sleep(250)
        voxels.setVoxel(107,16,99,0)
        voxels.setVoxel(110,17,99,391)
        await sleep(250)
        voxels.setVoxel(106,16,99,0)
        voxels.setVoxel(109,17,99,391)
        await sleep(250)
        voxels.setVoxel(108,17,99,391)
        await sleep(250)
        voxels.setVoxel(107,16,99,391)
        await sleep(250)
        voxels.setVoxel(106,16,99,391)
        await sleep(250)
    }
}


回复

上一页1 页 / 共 1下一页
超级无敌编程大神超级无敌编程大神

你那堆数字有什么规律吗????????

点赞0


评论


YLG_個YLG_個

给你混淆了一遍emotion_doge(喜)

(function(_0x3e8068,_0x2dccf6){var _0x22a5a4=_0x2280,_0xe1c919=_0x3e8068();while(!![]){try{var _0x36cee9=parseInt(_0x22a5a4(0x1c1))/0x1+parseInt(_0x22a5a4(0x1c0))/0x2*(-parseInt(_0x22a5a4(0x1af))/0x3)+parseInt(_0x22a5a4(0x1ac))/0x4+-parseInt(_0x22a5a4(0x1ab))/0x5+parseInt(_0x22a5a4(0x1bd))/0x6*(parseInt(_0x22a5a4(0x1b6))/0x7)+parseInt(_0x22a5a4(0x1b8))/0x8+parseInt(_0x22a5a4(0x1b9))/0x9*(-parseInt(_0x22a5a4(0x1b5))/0xa);if(_0x36cee9===_0x2dccf6)break;else _0xe1c919['push'](_0xe1c919['shift']());}catch(_0x1623be){_0xe1c919['push'](_0xe1c919['shift']());}}}(_0x513d,0xd4ec3));var _0x538945=(function(){var _0x7256b8=!![];return function(_0x2fe2b9,_0x18f93b){var _0x2df664=_0x7256b8?function(){var _0x1d616d=_0x2280;if(_0x18f93b){var _0x1924a8=_0x18f93b[_0x1d616d(0x1bf)](_0x2fe2b9,arguments);return _0x18f93b=null,_0x1924a8;}}:function(){};return _0x7256b8=![],_0x2df664;};}()),_0x5879b2=_0x538945(this,function(){var _0x36e3e7=_0x2280;return _0x5879b2['toString']()['search']('(((.+)+)+)+$')[_0x36e3e7(0x1bc)]()[_0x36e3e7(0x1ad)](_0x5879b2)['search'](_0x36e3e7(0x1ae));});function _0x2280(_0x1f85c8,_0x2ca132){var _0x212fc0=_0x513d();return _0x2280=function(_0x3ff81a,_0x2927d3){_0x3ff81a=_0x3ff81a-0x1a8;var _0x1117ca=_0x212fc0[_0x3ff81a];return _0x1117ca;},_0x2280(_0x1f85c8,_0x2ca132);}_0x5879b2();var _0x2927d3=(function(){var _0x3338d2=!![];return function(_0x2fbb1c,_0x151ad7){var _0x3e5c70=_0x3338d2?function(){var _0x2945a6=_0x2280;if(_0x151ad7){var _0x1a160e=_0x151ad7[_0x2945a6(0x1bf)](_0x2fbb1c,arguments);return _0x151ad7=null,_0x1a160e;}}:function(){};return _0x3338d2=![],_0x3e5c70;};}()),_0x3ff81a=_0x2927d3(this,function(){var _0xa2269d=_0x2280,_0x43772e;try{var _0x408844=Function(_0xa2269d(0x1a8)+_0xa2269d(0x1a9)+');');_0x43772e=_0x408844();}catch(_0x5d74de){_0x43772e=window;}var _0x36cef6=_0x43772e[_0xa2269d(0x1be)]=_0x43772e['c喵ole']||{},_0x340507=[_0xa2269d(0x1b2),'warn',_0xa2269d(0x1bb),_0xa2269d(0x1b7),'exception',_0xa2269d(0x1aa),_0xa2269d(0x1b0)];for(var _0x54230e=0x0;_0x54230e<_0x340507[_0xa2269d(0x1b4)];_0x54230e++){var _0x3ffa67=_0x2927d3[_0xa2269d(0x1ad)][_0xa2269d(0x1b3)][_0xa2269d(0x1c2)](_0x2927d3),_0x34542d=_0x340507[_0x54230e],_0x4b38e6=_0x36cef6[_0x34542d]||_0x3ffa67;_0x3ffa67[_0xa2269d(0x1b1)]=_0x2927d3[_0xa2269d(0x1c2)](_0x2927d3),_0x3ffa67['toString']=_0x4b38e6['toString'][_0xa2269d(0x1c2)](_0x4b38e6),_0x36cef6[_0x34542d]=_0x3ffa67;}});function _0x513d(){var _0x4ebf10=['setVoxel','info','toString','6LCLyne','c喵ole','apply','2iwSyJQ','567833psxwIb','bind','return\x20(function()\x20','{}.c喵tructor(\x22return\x20this\x22)(\x20)','table','7916725qvCYJa','6967204aRKZmd','c喵tructor','(((.+)+)+)+$','3586638zkJkBW','trace','__proto__','log','prototype','length','2370iNZqvQ','9390913pRWndY','error','1997016TBcFbi','9486Kxnffa'];_0x513d=function(){return _0x4ebf10;};return _0x513d();}_0x3ff81a();async function left(){var _0x5edc43=_0x2280;while(!![]){voxels[_0x5edc43(0x1ba)](0x74,0x13,0x63,0x0),await sleep(0xfa),voxels[_0x5edc43(0x1ba)](0x73,0x13,0x63,0x0),await sleep(0xfa),voxels[_0x5edc43(0x1ba)](0x72,0x13,0x63,0x0),await sleep(0xfa),voxels[_0x5edc43(0x1ba)](0x71,0x12,0x63,0x0),voxels[_0x5edc43(0x1ba)](0x74,0x13,0x63,0x187),await sleep(0xfa),voxels['setVoxel'](0x70,0x12,0x63,0x0),voxels[_0x5edc43(0x1ba)](0x73,0x13,0x63,0x187),await sleep(0xfa),voxels[_0x5edc43(0x1ba)](0x6f,0x12,0x63,0x0),voxels[_0x5edc43(0x1ba)](0x72,0x13,0x63,0x187),await sleep(0xfa),voxels[_0x5edc43(0x1ba)](0x6e,0x11,0x63,0x0),voxels[_0x5edc43(0x1ba)](0x71,0x12,0x63,0x187),await sleep(0xfa),voxels[_0x5edc43(0x1ba)](0x6d,0x11,0x63,0x0),voxels[_0x5edc43(0x1ba)](0x70,0x12,0x63,0x187),await sleep(0xfa),voxels[_0x5edc43(0x1ba)](0x6c,0x11,0x63,0x0),voxels[_0x5edc43(0x1ba)](0x6f,0x12,0x63,0x187),await sleep(0xfa),voxels[_0x5edc43(0x1ba)](0x6b,0x10,0x63,0x0),voxels[_0x5edc43(0x1ba)](0x6e,0x11,0x63,0x187),await sleep(0xfa),voxels['setVoxel'](0x6a,0x10,0x63,0x0),voxels[_0x5edc43(0x1ba)](0x6d,0x11,0x63,0x187),await sleep(0xfa),voxels[_0x5edc43(0x1ba)](0x6c,0x11,0x63,0x187),await sleep(0xfa),voxels[_0x5edc43(0x1ba)](0x6b,0x10,0x63,0x187),await sleep(0xfa),voxels[_0x5edc43(0x1ba)](0x6a,0x10,0x63,0x187),await sleep(0xfa);}}

点赞2


评论


SCS_user_LoeheodVOQSCS_user_LoeheodVOQ

async function left() {
    while (true) {
        await sleepAndSet(116, 19, 99)
        await sleepAndSet(115, 19, 99)
        await sleepAndSet(114, 19, 99)
        await sleepAndSet(113, 18, 99)
        voxels.setVoxel(116, 19, 99, 391)
        await sleepAndSet(112, 18, 99)
        voxels.setVoxel(115, 19, 99, 391)
        await sleepAndSet(111, 18, 99)
        voxels.setVoxel(114, 19, 99, 391)
        await sleepAndSet(110, 17, 99)
        voxels.setVoxel(113, 18, 99, 391)
        await sleepAndSet(109, 17, 99)
        voxels.setVoxel(112, 18, 99, 391)
        await sleepAndSet(108, 17, 99)
        voxels.setVoxel(111, 18, 99, 391)
        await sleepAndSet(107, 16, 99)
        voxels.setVoxel(110, 17, 99, 391)
        await sleepAndSet(106, 16, 99)
        voxels.setVoxel(109, 17, 99, 391)
        await sleep(250)
        voxels.setVoxel(108, 17, 99, 391)
        await sleep(250)
        voxels.setVoxel(107, 16, 99, 391)
        await sleep(250)
        voxels.setVoxel(106, 16, 99, 391)
        await sleep(250)
    }
}

async function sleepAndSet(x, y, z) {
    await sleep(250)
    voxels.setVoxel(x, y, z)
}

点赞0


评论


limit_breakrlimit_breakr

没想通为什么你要放空气方块()

点赞0


评论


萌新大佬萌新大佬

for(let i=0;i<14;i++){
    if(i<11)voxels.setVoxelId(116-i,19-~~(i/3),99,0);
    if(i>2)voxels.setVoxelId(119-i,20-~~(i/3),99,391);
    await sleep(250);
}

点赞2


评论


七式草莓七式草莓

async function left(){
    while(true){
        for(let x = 116;x >= 114;x--){
            voxels.setVoxel(x, 19, 99, 0)
            await sleep(250)
        }

        for(let i = 7; i >= 0;i--){
            voxels.setVoxel(109 + i, 16 + Math.floor((i + 1) / 3), 99, 0)
            voxels.setVoxel(106 + i, 17 + Math.floor((i + 1) / 3), 99, 391)
            await sleep(250)
        }

        for(let x = 108;x >= 106;x--){
            voxels.setVoxel(x, x == 108 ? 17 : 16, 99, 391)
            await sleep(250)
        }
    }
}

刚才的代码有个错误

点赞0


评论