Skip to main content

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

Add Effect

The arc:on_add_effect action type is triggered when a player receives a potion effect.

Action Data

When this action is triggered, the following action data is made available:

Action Data TypeDescription
arc:mob_effect_instanceDescribes a specific instance of a mob effect, including type, duration, and amplifier.
arc:entityRepresents an entity in the game, such as a player, mob, or item.
arc:worldRefers to the world/dimension where the action occurs.
arc:block_positionSpecifies the coordinates (x, y, z) of a block in the world.

Example

The following example removes any harmful effect immediately.

data/my_datapack/arc/cure_harmful.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_add_effect",
"conditions": [
{
"type": "arc:effect_category",
"category": "HARMFUL"
}
],
"rewards": [
{
"type": "arc:remove_effect"
}
]
}

Compatible Condition Types

Compatible Reward Types