Skip to content

AbilityEntityEffect

seelderr edited this page Jan 3, 2025 · 15 revisions

Description

An AbilityEntityEffect is an effect from an ability that is applied to a specific entity. Each effect applies to one entity at a time, determined by the AbilityTargeting.

Parents

This object is used by the following objects:

  1. AbilityTargeting

AbilityEntityEffect Types

Damage

Deals an amount of damage to the entity. To see available damage types, see this for vanilla damage types and this for dragon survival damage types.

The key for this type is "damage"

Schema

{
    "type": [DamageType]                // [Mandatory] || The type of damage dealt.
    "amount": [LevelBasedValue]         // [Mandatory] || The amount of damage dealt.
}

Modifier

Applies a list of ModifierWithDuration(s) to the entity.

The key for this type is "modifier"

Schema

{
    "modifiers": [ModifierWithDuration] // [Mandatory] || The list of modifiers to apply.
}

Potion

Applies a list of mob effects as determined by PotionData to the entity.

The key for this type is "potion"

Schema

{
    "potion": [PotionData] // [Mandatory] || The potion data to apply.
}
Datapack Documentation
Clone this wiki locally