Repository navigation
Command Usage
Syntax and arguments as of modversion: 1.5.0 or higher
/health add <targets> <amount> [<updateMaxHealth>]
Adds the specified amount of health to the target(s).
If the updateMaxHealth argument is set to true, it will also update the maximum health of the target(s) to match the new health value.
targets:
- required
- type: Vanilla Target selector
amount:
- required
- type: float
- can be positive and negative
updateMaxHealth:
- optional
- type: boolean
/health set <targets> <health> [<updateMaxHealth>]
Sets the health of the target(s) to the specified amount.
If the updateMaxHealth argument is set to true, it will also update the maximum health of the target(s) to match the new health value.
targets:
- required
- type: Vanilla Target selector
health:
- required
- type: float
updateMaxHealth:
- optional
- type: boolean
/health get <targets>
Returns the health of the target(s).
If only one target is selected, it will return the health of that target.
targets:
- required
- type: Vanilla Target selector
/health reset <targets>
Removes the health modifications of the target(s), that were added by this mod.
targets:
- required
- type: Vanilla Target selector
Download the mod here:
Curseforge: https://www.curseforge.com/minecraft/mc-mods/health-command
Modrinth: https://modrinth.com/mod/health-command