Skip to main content

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

Freeze Entity

The arc:freeze_entity reward type applies a freezing effect (Slowness) to the target entity.

Parameters

ParameterTypeRequiredDefaultDescription
durationintOptional100Ticks to apply slowness.

Example

The following example freezes an entity for 5 seconds when hitting it with a snowball.

data/my_datapack/arc/snowball_freeze.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_hurt_entity",
"conditions": [
{
"type": "arc:damage_source",
"direct_entity_type": "minecraft:snowball"
}
],
"rewards": [
{
"type": "arc:freeze_entity",
"duration": 100
}
]
}

Compatible Action Types