ProjectileBlockEffect - DragonSurvivalTeam/DragonSurvival GitHub Wiki

Description

Projectile block effects are effects that are applied to a specific block 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

Particle

Creates particles on the given block 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
}