猫史档案馆


有人可以当我师傅嘛

用户:烤乳鸽RoastedSquab烤乳鸽RoastedSquab查看:34 回复:9 评论:34 创建时间:2020-06-22T18:12:38


没什么要求,把题做对就行——————————————————————————————————————

world.querySelectorAll(".彩蛋").forEach(e=>{

    e.onEntityContact(({entity,other})=>{  

    if(!other.isPlayer){return} 

    other.player.invisible=true;  

    world.say(entity.player.name+'找到了彩蛋,获得隐身buff') })})

 为什么可以隐身而不能说“用户名+找到了彩蛋,获得隐身buff”


回复

上一页1 页 / 共 1下一页
无双喵无双喵

我      

 

 

 

 

 

 

 

 

你想得美             !

点赞0


评论


一个STUB用户_6923702一个STUB用户_6923702

搞错啦!entity是指e!

点赞0


评论


ChyEitaChyEita

猜测这是代码岛3.0的测试题

点赞0


评论


没有人doge没有人doge

( ⊙o⊙ )哇 大佬

点赞0


评论


SDSLSDSL

额hi,你知道我不会的。。。拜拜

点赞0


评论


一个STUB用户_6923702一个STUB用户_6923702

请下面的人步伐一致:模型没名字

点赞0


评论


Vicent轩Vicent轩

我猜会报错的原因是:entity not found

所以我认为应该把 world.say(entity.player.name+'找到了彩蛋,获得隐身buff') })})

改成world.say(other.player.name+'找到了彩蛋,获得隐身buff') })})

点赞1


评论


Vicent轩Vicent轩

话说到底是你求我们收徒还是我求你做我们的徒弟啊...

点赞0


评论


1232RvE1232RvE

我阔以

顺便收了代码

应该这样改:

world.querySelectorAll(".走你").forEach(e=>{

 

    e.onEntityContact(({entity,other})=>{  

 

    if(!other.isPlayer){return} 

 

    other.player.invisible=true;  

 

    world.say(other.player.name+'找到了彩蛋,获得隐身buff') })})

点赞0


评论