Skip to content

Change Health

Entity Action Type

Changes the health of the entity.

Type ID: eggolib:change_health

Fields

Field Type Default Description
change Float The value to be used for modifying the entity's health.
operation String] "add" Determines how the specified value will be operated on the entity's health. Accepts one of "add" and "set".

Examples

"entity_action": {
    "type": "eggolib:change_health",
    "change": 1,
    "operation": "add"
}

This example will add 1 to the entity's health.

"entity_action": {
    "type": "eggolib:change_health",
    "change": 10,
    "operation": "set"
}

This example will set the entity's health to 10.