-
Notifications
You must be signed in to change notification settings - Fork 42
AbilityEntityEffect
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.
This object is used by the following objects:
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"
{
"type": [DamageType] // [Mandatory] || The type of damage dealt.
"amount": [LevelBasedValue] // [Mandatory] || The amount of damage dealt.
}
Applies a list of ModifierWithDuration(s) to the entity.
The key for this type is "modifier"
{
"modifiers": [ModifierWithDuration] // [Mandatory] || The list of modifiers to apply.
}
Applies a list of mob effects as determined by PotionData to the entity.
The key for this type is "potion"
{
"potion": [PotionData] // [Mandatory] || The potion data to apply.
}
Summons a custom projectile with its own properties. This is the most complex ability effect, and for this reason Projectiles have their own registry entries.
The TargetDirection for a projectile effect is the direction in which a projectile is fired. There are a few options:
"towards_entity" // Fire the projectile towards the targeted entity, from the caster of the ability
"looking_at" // Fire the projectile in the direction the entity is looking.
"down"
"up"
"north"
"south"
"west"
"east"
{
"projectile_data": [Projectile] // [Mandatory] || The projectile to fire.
"target_direction": [TargetDirection] // [Mandatory] || Which way the projectile is fired.
"number_of_projectiles": [LevelBasedValue] // [Mandatory] || How many projectiles are fired.
"projectile_spread": [LevelBasedValue] // [Optional] || The projectile spread. Defaults to 0.
"speed": [LevelBasedValue] // [Mandatory] || The speed at which the projectile is fired.
}
Summons a weighted list of entities, and applies a list of attributes to them.
A list of attributes to scale by the scaling value.
{
"attributes": [Attribute] // [Mandatory] || List of attributes to scale.
"scale": [LevelBasedValue] // [Mandatory] || The amount to scale by.
}
{
"entities": [SimpleWeightedRandomList of Entities] // [Mandatory] || The entities to summon.
"id": [ResourceLocation] // [Mandatory] || The ID to tag the summoned entities with.
"max_summons": [LevelBasedValue] // [Mandatory] || The max number of entities that can be summoned by this ability.
"duration": [LevelBasedValue] // [Optional] || How long the summoned entities stay before disappearing. Defaults to infinite duration (-1).
"attribute_scales": [AttributeScale] // [Optional] || The attributes to scale on the summoned entities.
"should_set_allied": [bool] // [Optional] || Whether the summoned entities are allied or not. Defaults to true.
}
Grants a list of damage modification to the entity.
{
"modifications": [DamageModification] // [Mandatory] || The damage modifications to apply to the entity.
}
■ Still have questions about Dragon Survival? Ask them in the Discord Server! I always try to help everyone as much as I can.
Datapack Documentation
- Dragon Species
- Projectile
- General Data Formats
- Installation
- "Mod doesn't work!"
- Incompatibility
- Configuration
- Update
- Moving appearance between saves
- Linux compatibility
- How do I use Curseforge?
- Installing the modpack
- Optimizing