ProjectileWorldEffect - DragonSurvivalTeam/DragonSurvival GitHub Wiki
Description
Projectile world effects are effects that are applied to a specific world position from a projectile.
Parents
This object is used by the following objects:
Effect Types
Explosion
Creates an explosion at the given position.
The key for this type is "explosion"
Schema
{
"damage_type": [DamageType] // [Mandatory] || The type of damage that the explosion does.
"explosion_power": [LevelBasedValue] // [Mandatory] || The strength of the explosion.
"fire": [boolean] // [Mandatory] || Whether the explosion causes fire or not.
"break_blocks": [boolean] // [Mandatory] || Whether the explosion breaks blocks or not.
"can_damage_self": [boolean] // [Mandatory] || Whether the explosion can damage the owner of the projectile or not.
}
Lightning
Spawns a lightning bolt on the given point using LightningData.
The key for this type is "lightning"
Schema
{
"data": [LightingData] // [Mandatory] || The data for this effect.
}
Particle
Creates particles on the given point 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
}