- 版权类型
- 原创
- 版权链接
- #
- 语言支持
- 中文(简体)
- 前置组件
- LiteLoaderBDS 或 LegacyScriptEngine
https://github.com/LiteLDev/LegacyScriptEngine
- 适配版本(基岩)
- 1.21
- 1.20
设置实体最大生命值、当前生命和治疗实体
[MD]
# 安装
**LiteLoaderBDS** (1.20.3x及以下)
下载 `MaxHealth.js` 并复制到 `/plugins/` 下
**LeviLamina** (1.20.3x以上)
下载 `MaxHealth_xxx.zip` 并解压到 `/plugins/` 下
# 使用
## 命令
使用 `/maxhealth <entity: target> <health: int>` 设置实体最大生命值(格)
使用 `/health <entity: target> <health: int>` 设置实体当前生命值
使用 `/heal <entity: target> <health: int>` 治疗实体
### 示例
`/maxhealth @s 100`: 设置自己的最大生命值为100格
# 许可证
MIT许可证
[/MD]
[MD]
# 安装
**LiteLoaderBDS** (1.20.3x及以下)
下载 `MaxHealth.js` 并复制到 `/plugins/` 下
**LeviLamina** (1.20.3x以上)
下载 `MaxHealth_xxx.zip` 并解压到 `/plugins/` 下
# 使用
## 命令
使用 `/maxhealth <entity: target> <health: int>` 设置实体最大生命值(格)
使用 `/health <entity: target> <health: int>` 设置实体当前生命值
使用 `/heal <entity: target> <health: int>` 治疗实体
### 示例
`/maxhealth @s 100`: 设置自己的最大生命值为100格
# 许可证
MIT许可证
[/MD]