ProjectileEntityEffect - DragonSurvivalTeam/DragonSurvival GitHub Wiki

Description

Projectile entity effects are effects that are applied to a specific entity from a projectile (usually, but not always from being hit by the projectile).

Parents

This object is used by the following objects:

  1. ProjectileTargeting
  2. Projectile

Effect 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.
}

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.
}

Lightning

Spawns a lightning bolt on the target using LightningData.

The key for this type is "lightning"

Schema

{ 
     "data": [LightingData] // [Mandatory] || The data for this effect.
}

Particle

Creates particles on the given entity given SpawnParticles data.

The key for this type is "particle".

Schema

{
    "particle_data": [ParticleData]        // [Mandatory] || The data for the particles being spawned
    "particle_count": [LevelBasedValue]    // [Mandatory] || The number of particles to spawn
}

Function

Runs a function on the target.

The key for this type is '"function"'.

Schema

{
    "function": [ResourceLocation]       // [Mandatory] || The location of the function file
}