Skip to main content

Effect

The arc:effect condition type checks for a specific mob effect.

Parameters

ParameterTypeRequiredDefaultDescription
effectEffectRequired-The effect to check.

Example

The following example will give the player a feather every time they receive the Slow Falling effect.

data/my_datapack/arc/feather_for_slow_falling.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_effect_added",
"conditions": [
{
"type": "arc:effect",
"effect": "minecraft:slow_falling"
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:feather" }
}
]
}

Compatible Action Types