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
- allay
- axolotl
- armor_stand
- bat
- bee
- blaze
- cat
- cave_spider
- chicken
- cow
- creeper
- dolphin
- donkey
- drowned
- elder_guardian
- ender_crystal
- ender_dragon
- enderman
- endermite
- evocation_illager
- fish
- fox
- frog
- ghast
- glow_squid
- goat
- guardian
- hoglin
- horse
- husk
- iron_golem
- llama
- magma_cube
- mooshroom
- mule
- ocelot
- panda
- parrot
- phantom
- pig
- piglin_brute
- piglin
- pillager
- polar_bear
- pufferfish
- rabbit
- ravager
- salmon
- sheep
- shulker
- silverfish
- skeleton_horse
- skeleton
- slime
- snow_golem
- spider
- squid
- stray
- strider
- tadpole
- trader_llama
- tripod_camera
- tropicalfish
- turtle
- vex
- villager_v2
- villager
- vindicator
- wandering_trader
- warden
- witch
- wither_skeleton
- wither
- wolf
- xp_orb
- zoglin
- zombie_horse
- zombie_pigman
- zombie_villager_v2
- zombie_villager
- zombie
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for