Lv.1
最近没时间玩Box3
签名:bilibili
在 【代码岛3.0内测第9弹 - 编程!!】首批编程大师招募! 中回复
world.onChat(({ entity, message }) => {
// 当玩家发送‘我要变大’文字的时候变大到1.5倍,当玩家发送‘我要变小’文字的时候缩小成0.5倍。发送‘我要还原'则恢复
if (entity && entity.isPlayer) {
if (message === '我要变大') {
entity.player.scale = 1.5;
} else if (message === '我要变小') {
entity.player.scale = 0.5;
}else if (message === '我要还原') {
entity.player.scale = 1;
}
}
})2020-01-11T16:10:27 点赞:0