用户:一个XXX真萌新查看:0 回复:10 评论:0 创建时间:2020-04-20T09:41:01
如题,人数不限,快来吧!
最强之龙额,想跟你们开个玩笑
好了给你代码别给我黑名单
//控制玩家的外观 world.onChat(({ entity, message }) => { if (entity && entity.isPlayer) { if (message=='变大'){ entity.player.scale=7; }else if (message=='缩小'){ entity.player.scale=0; }else if (message=='发光'){ entity.player.emissive=2; }else if (message=="透明"){ entity.player.invisible=true; }else if (message=='还原'){ entity.player.scale=1; entity.player.emissive=0; entity.player.invisible=false; } } })//选中所有带有标签target的实体,并遍历循环. world.querySelectorAll('.target').forEach((e)=>{ e.onEntityContact(({entity,other})=>{ if(!other.isPlayer){return} other.mesh=entity.mesh; other.meshScale=entity.meshScale; other.player.invisible=true; }) }) world.querySelectorAll('.传送').forEach((e)=>{ e.onEntityContact(({entity,other})=>{ //设置目标模型的碰撞事件. if(!other.isPlayer){return} //防止非玩家实体参与检测. other.position=new Box3Vector3(喵,24,124); world.say(other.player.name+'开始了跑酷'); }) })
点赞0
评论