猫史档案馆


蓝衣鸷鸟

蓝衣鸷鸟

Lv.1

希望多一点人理解我多一点人懂我——————幕玄夜

获赞:69收藏:10浏览:1055作品收藏:3

签名:疯狂的打代码中.......

回复帖子评论
上一页1 页 / 共 1下一页

【赛事公告】双春鼠计划开启!S5赛季等你闯关,喵了解详情 中回复

欢迎大家进入幕夜工作室!!!!emotion_编程猫_加油

2020-05-05T18:31:23 点赞:0

【代码岛3.0】挖方块代码 中回复

world.onPress(({button,raycast:{voxelIndex,hitEntity},entity})=>{         if(button=='action0'){                 console.clear();                 console.warn('position:');                 console.log(`${voxelIndex.x},${voxelIndex.y},${voxelIndex.z}`);                 console.warn('clicker:');                 console.log(entity.player.name);                 console.warn('hit player:');                 try{                 console.log(hitEntity.player.name);                 }catch(err){                 console.log('nothing-'+err);                 }                 voxels.setVoxel(voxelIndex.x,voxelIndex.y,voxelIndex.z,'air');                 return;         }else if(button=='action1'){console.clear();                 console.warn('position:');                 console.log(`${voxelIndex.x},${voxelIndex.y},${voxelIndex.z}`);                 console.warn('clicker:');                 console.log(entity.player.name);                 console.warn('hit player:');                 try{                 console.log(hitEntity.player.name);                 }catch(err){                 console.log('nothing-'+err);                 }                 voxels.setVoxel(voxelIndex.x,voxelIndex.y + 1,voxelIndex.z,'dark_stone');                 return;                 }

 

})

2020-06-22T11:36:49 点赞:0

【代码岛3.0】挖方块代码 中回复

world.onPress(({button,raycast:{voxelIndex,hitEntity},entity})=>{         if(button=='action0'){                 console.clear();                 console.warn('position:');                 console.log(`${voxelIndex.x},${voxelIndex.y},${voxelIndex.z}`);                 console.warn('clicker:');                 console.log(entity.player.name);                 console.warn('hit player:');                 try{                 console.log(hitEntity.player.name);                 }catch(err){                 console.log('nothing-'+err);                 }                 voxels.setVoxel(voxelIndex.x,voxelIndex.y,voxelIndex.z,'air');                 return;         }else if(button=='action1'){console.clear();                 console.warn('position:');                 console.log(`${voxelIndex.x},${voxelIndex.y},${voxelIndex.z}`);                 console.warn('clicker:');                 console.log(entity.player.name);                 console.warn('hit player:');                 try{                 console.log(hitEntity.player.name);                 }catch(err){                 console.log('nothing-'+err);                 }                 voxels.setVoxel(voxelIndex.x,voxelIndex.y + 1,voxelIndex.z,'dark_stone');                 return;                 }

 

})

2020-06-22T11:37:26 点赞:0