用户:
SCX小皮迷查看:4 回复:6 评论:4 创建时间:2020-04-24T11:06:22
还有到达终点可以飞行的代码怎么搞,还有到达终点可以变大的代码怎么搞
world.onPlayerJoin(({entity})=>{
entity.enableDamage=true;
})
world.onVoxelContact(({voxel,entity})=>{
const c=voxels.id('S');//也可以是别的方块
if(voxel===c){
entity.player.directMessage('存档成功!');
entity.player.spawnPoint.copy(entity.position);
}
})
world.onEntityContact(({entity,other})=>{
if(entity.isPlayer===false&&other.isPlayer===true){
world.say(other.player.name+'到达终点!');
other.player.canFly=true;//玩家可飞行
other.player.scale=6.0;//玩家大小
}
})点赞0
评论