Entity
paper/entity_damage
Damage Entity
Deals a specified amount of damage to a living entity.
Note: Damage is affected by armour, enchantments, and the entity's damage modifier. The entity may die if health reaches 0.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
exec |
exec | Incoming execution. | |
entity |
entity | The living entity to damage. | |
amount |
number | ✓ | Damage amount. |
Outputs
| Name | Type | Description |
|---|---|---|
exec |
exec | Continues after dealing damage. |
newHealth |
number | Health of the entity after damage. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
amount |
number | "1" |
How much damage to deal (half-hearts). |