用户:
yee089查看:11 回复:16 评论:11 创建时间:2022-02-27T14:32:00
world.onChat(({entity,message})=>{
if(message.startsWith('pet')){
for(const e of world.querySelectorAll('player')){
if(e.player.name == message.slice(3)){
entity.position=e.position;
}
}
}
}
})
效果:你去问编程大师666的我1号就知道了))
imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"
点赞0
评论
world.onChat(({entity,message})=>{
if(message.startsWith('pet')){
for(const e of world.querySelectorAll('player')){
if(e.player.name == message.slice(3)){
entity.position=e.position;
}
}
}
}
})点赞0
评论