Entity on Fire
The arc:entity_on_fire reward type sets the target entity on fire.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ticks | int | ✅Required | -No default value | The duration of the fire in ticks. |
Example
The following example will set a zombie on fire for 5 seconds when the player hurts it.
data/my_datapack/arc/flaming_zombie_hit.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_hurt_entity",
"conditions": [
{
"type": "arc:entity_type",
"entity_type": "minecraft:zombie"
}
],
"rewards": [
{
"type": "arc:entity_on_fire",
"ticks": 100
}
]
}
## Compatible Action Types
<CompatibleActionTypes />