用户:
全能代码师查看:111 回复: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元'); }; });
白篮setTimeout( function(){
你的代码
}, 5 * 1000 );点赞0
评论
怎么天天有人问这个,自己在百度搜不就得了
a 对
‘不是,我要的是可以多次执行
套上onTick
settimeout只能用一次
大佬教我!谁教好了我给他5赞!