用户:
星海茫茫_tammy查看:1 回复:4 评论:1 创建时间:2021-04-08T17:19:46
world.onVoxelContact(({ entity, voxel, axis }) => {
if (!entity.isPlayer) return;
const voxelName = voxels.name(voxel);
if (voxelName === 'nine' && axis.y === 1){
world.say(`${entity.player.name} 来到了第九关:豆腐渣之桥,并变小了`)
entity.player.scale += 1.7;
}
迷失冷光world.onVoxelContact(({ entity, voxel, axis }) => {
if (!entity.isPlayer) return;
const voxelName = voxels.name(voxel);
if (voxelName === 'nine' && axis.y === 1){
world.say(`${entity.player.name} 来到了第九关:豆腐渣之桥,并变小了`)
entity.player.scale += 1.7;
}
})
怎么两个函数的右括号都没了?
点赞0
评论
AB骉Alobokworld.onVoxelContact(({ entity, voxel, axis }) => {
if (!entity.isPlayer) return;
const voxelName = voxels.name(voxel);
if (voxelName === 'nine' && axis.y === 1){
world.say(`${entity.player.name} 来到了第九关:豆腐渣之桥,并变小了`)
entity.player.scale += 1.7;
}
})
点赞0
评论