Skip to main content

Entity on Fire

The arc:entity_on_fire reward type sets the target entity on fire.

Parameters

ParameterTypeRequiredDefaultDescription
ticksintRequired-No default valueThe 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 />