Skip to main content

Get 25% OFF on your first order with BisectHosting using code "DAQEM"!

Heal

The arc:heal reward type restores health points to the player.

Parameters

ParameterTypeRequiredDefaultDescription
amountfloatRequired-No default valueAmount to heal.
is_percentagebooleanOptionalfalseIs amount a percentage.

Example

The following example heals the player for 2 hearts (4 points) when killing a mob.

data/my_datapack/arc/lifesteal.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_kill_entity",
"rewards": [
{
"type": "arc:heal",
"amount": 4.0
}
]
}

Compatible Action Types