猫史档案馆


这段代码哪里错了啊?

用户:星海茫茫_tammy星海茫茫_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;
    }


回复

上一页1 页 / 共 1下一页
迷失冷光迷失冷光

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骉AlobokAB骉Alobok

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


评论


沐夏_IMuXia沐夏_IMuXia

最下面是这个:

  }
})

似乎少了}+)

点赞0


评论


该账号已被封禁该账号已被封禁

})是用来吃的?

点赞0


评论