minecraft:health
Dynamic value
Properties
This component has no properties in the official schema: add it as an empty object {} to switch the behaviour on.
Example from the game files
This is how vanilla Donkey uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:health": {
"value": {
"range_min": 15,
"range_max": 30
}
}
}Used by 94
Vanilla entities with minecraft:health in their definition:
AllayArmadilloArmor StandAxolotlBatBeeBlazeBoggedBreezeCamelCamel HuskCatCave SpiderChickenCodCopper GolemCowCreakingCreeperDolphinDonkeyDrownedElder GuardianEnder CrystalEnder DragonEndermanEndermiteEvokerFoxFrogGhastGlow SquidGoatGuardianHappy GhastHoglinHorseHuskIron GolemLlamaMagma CubeMooshroomMuleNautilusOcelotPandaParchedParrotPhantomPigPiglinPiglin BrutePillagerPolar BearPufferfishRabbitRavagerSalmonSheepShulkerSilverfishSkeletonSkeleton HorseSlimeSnifferSnow GolemSpiderSquidStrayStriderSulfur CubeTadpoleTrader LlamaTripod CameraTropical FishTurtleVexVillagerVillagerVindicatorWandering TraderWardenWitchWitherWither SkeletonWolfExperience OrbZoglinZombieZombie HorseZombie NautilusZombified PiglinZombie VillagerZombie Villager
Set it without writing JSON
The mob maker writes this component for you from a form and puts it in a ready-to-import .mcaddon.
Related components
movementexperience_rewardattackscalefollow_rangeunderwater_movementknockback_resistanceuses_legacy_frictionbuoyantvariable_max_auto_stepattack_cooldownflying_speedwater_movementattack_damageblock_movement_slowdown_immunitygroup_sizemovement_sound_distance_offsetstrengthair_drag_modifierbouncinessfriction_modifierlava_movementplayer.exhaustionplayer.experience