DamageableComponent
Represents a component that can handle damage interactions, including applying damage from various sources and managing the internal health of an associated modeled entity. This component is responsible for processing both custom damage and Minecraft's native damage system, depending on the context and the underlying entity type.
Properties
Link copied to clipboard
public double internalHealth
Represents the internal health of an entity.
Functions
Link copied to clipboard
This is the preferred way to attack a living entity if you have a living entity as the underlying entity.
Beware, this damage uses custom damage which might get reduced somewhat randomly by Minecraft, so test it before using it.
Link copied to clipboard
Represents the internal health of an entity.
Link copied to clipboard
Represents the internal health of an entity.