Skip to content

[Bug]: 设置实体的最大生命值不起作用 #291

@xuantianzhilin

Description

@xuantianzhilin

Describe the bug

设置实体的最大生命值en.setMaxHealth(health)不起作用

To Reproduce

let entity = mc.spawnMob('minecraft:zombie', poses[i]);
entity.setMaxHealth(40);
后面无论是再加上治疗实体或者设置生命值,还是给予僵尸瞬间伤害药水效果,僵尸都会被三刀钻石剑砍死。

Expected behavior

希望修复这个api

Screenshots

No response

Platform

windows server 2019

BDS Version

1.21.70

LeviLamina Version

1.2.1

LegacyScriptEngine Version

0.11.3

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions