Skip to main content

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

Cleanse Effects

The arc:cleanse_effects reward type removes specific categories of potion effects from the player.

Parameters

ParameterTypeRequiredDefaultDescription
remove_positivebooleanOptionalfalseRemove beneficial effects.
remove_negativebooleanOptionaltrueRemove harmful effects.
remove_neutralbooleanOptionalfalseRemove neutral effects.

Example

The following example removes all negative effects when drinking milk.

data/my_datapack/arc/milk_cleanse.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_drink",
"conditions": [
{
"type": "arc:item",
"item": "minecraft:milk_bucket"
}
],
"rewards": [
{
"type": "arc:cleanse_effects",
"remove_negative": true,
"remove_positive": false
}
]
}

Compatible Action Types