
Lv.1
()
签名:写代码()()() 玩起床()()() 什(
在 【求助/急】求允许玩家交互的代码 中回复
const npc = world.querySelector('#你要交互模型的名字');
npc.enableInteract = true; // 开启实体互动功能
npc.interactHint = '交互文字';
npc.interactRadius = 32;
world.onInteract( ({entity}) => {
entity.enableDamage = true
entity.hurt(伤害值)
});2022-01-26T13:29:53 点赞:0
在 【求助/急】求允许玩家交互的代码 中回复
建议你多看看API,这种东西API上都会有的,API文档:https://docs.box3.codemao.cn/
2022-01-26T13:30:34 点赞:0