Entity Documentation - minecraft:health

minecraft:health specifies how much life an entity has when spawned.

Parameters

Name Default Value Type Description
max not set Integer The maximum starting health the entity has.
value not set Integer The default amount of health the entity starts with. This can be an integer or a 'range_min' and 'range_max' value for entities with varying starting health.

Examples

"minecraft:health": {
        "value": 10,
        "max": 10
      }
"minecraft:health": {
        "value": 10,
        "max": 10
      }

Vanilla entities examples

cave_spider

"minecraft:health": {
        "value": 12,
        "max": 12
      }

horse

"minecraft:health": {
        "value": {
        "range_min": 15,
        "range_max": 30
      }
}

Vanilla entities using minecraft:health