Skip to main content

Effect Category

The arc:effect_category condition type checks the category of a mob effect (BENEFICIAL, HARMFUL, or NEUTRAL).

Parameters

ParameterTypeRequiredDefaultDescription
categoryEffectCategoryRequired-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