Effect
The arc:effect condition type checks for a specific mob effect.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
effect | Effect | ✅Required | - | 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
💉 On Effect Added
The arc:oneffectadded action type is triggered when a player receives a new effect.