Effect Category
The arc:effect_category condition type checks the category of a mob effect (BENEFICIAL, HARMFUL, or NEUTRAL).
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
category | EffectCategory | ✅Required | - | The category of the effect. |
Example
The following example will give the player a milk bucket every time they receive a harmful effect.
data/my_datapack/arc/cure_harmful_effects.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_effect_added",
"conditions": [
{
"type": "arc:effect_category",
"category": "HARMFUL"
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:milk_bucket" }
}
]
}
Compatible Action Types
💉 On Effect Added
The arc:oneffectadded action type is triggered when a player receives a new effect.