猫史档案馆


【box3】【求助】【急】下面代码的怎么让他等待3秒后再次运行?

用户:全能代码师全能代码师查看:9 回复:3 评论:9 创建时间:2020-09-13T13:43:19


world.onVoxelContact(asy喵({ x, y, z, entity }) => {     if ((voxels.getVoxel(x, y, z)) == (voxels.id("white")) && entity.isPlayer) {         QIAN = QIAN + 2;         entity.player.directMessage('你获得了2元');     };     if ((voxels.getVoxel(x, y, z)) == (voxels.id("coffee_gray")) && entity.isPlayer) {         QIAN = QIAN + 1;         entity.player.directMessage('你获得了1元');     }; });


回复

上一页1 页 / 共 1下一页
XYh1271XYh1271

onTick

点赞0


评论


白篮白篮

setTimeout( function(){
你的代码
}, 5 * 1000 );

点赞0


评论


全能代码师全能代码师

https://box3create.codemao.cn/games/5690cfcdf23bd463460f

点赞0


评论