Skip to main content

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

Effect

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

Parameters​

ParameterTypeRequiredDefaultDescription
effectMobEffectInstance✅Required-The effect to check.
check_amplifierboolean❌OptionalfalseWhether to check the amplifier.
amplifier_comparisonComparisonType❌Optional==How to compare the amplifier.
check_durationboolean❌OptionalfalseWhether to check the duration.
duration_comparisonComparisonType❌Optional==How to compare the duration.

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_add_effect",
"conditions": [
{
"type": "arc:effect",
"effect": "minecraft:slow_falling"
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:feather" }
}
]
}

Compatible Action Types​