Lv.1
签名:https://shequ.codemao.cn/community/330512 请看此贴,我已经永久退猫了,再见
在 【代码岛3.0】挖方块代码 中回复
world.onPress(({button,raycast:{voxelIndex,hitEntity},entity})=>{
// if(clicker.isPlayer){
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,'stone');
return;
// }
}else if(button=='action1'){}
// }
})
//填充方块代码2020-06-22T12:50:50 点赞:0