用户:
努力学习的包酱查看:0 回复:3 评论:0 创建时间:2023-08-25T17:53:35
请问要怎么实现呢?
world.onPlayerJoin(async ({ entity }) => {
entity.enableInteract = true
entity.interactRadius = 3
entity.interactHint = '互动'
entity.onInteract(async ({ entity, targetEntity }) => {
//这里要填什么()()()
});
})
超级的不帅world.onPlayerJoin(async ({ entity }) => {
entity.enableInteract = true
entity.interactRadius = 3
entity.interactHint = '互动'
entity.onInteract(async({ entity, targetEntity }) => {
targetEntity.hp = targetEntity.maxHp;
});
})点赞0
评论