forked from BlackAures1/DragonSurvival
-
Notifications
You must be signed in to change notification settings - Fork 42
ProjectileTargeting
seelderr edited this page Jan 13, 2025
·
2 revisions
ProjectileTargeting is the core structure for handling all of the effects and targeting logic for projectiles. It contains various ways to target entities, blocks, or a world location, as well as all of the potential effects that could be applied to those entities, blocks, or world location.
This object is used by the following objects:
This object references the following objects:
A combination of a ProjectileEffect and a Predicate.
{
"effect": [ProjectileEntityEffect or ProjectileBlockEffect or ProjectileWorldEffect] // [Mandatory] || The effect to apply.
"condition": [Predicate] // [Optional] || The conditions under which to apply the effect.
}
Targets an area around the entity/block/world position.
{
"effects": [ConditionEffect] // [Mandatory] || List of effects to apply.
"tick_rate": [number] // [Optional] || The frequency that this effect applies, if it is ticking. Defaults to 1.
"chance": [number] // [Optional] || The chance this effect is applied. Defaults to 1.
"radius": [LevelBasedValue] // [Mandatory] || The radius of the area.
"particle_trail": [ParticleType] // [Optional] || The particle to use for drawing a trail between the center of the area and its targets when effects are applied.
}
Targets the center of the entity/block/world position.
{
"effects": [ConditionEffect] // [Mandatory] || List of effects to apply.
"tick_rate": [number] // [Optional] || The frequency that this effect applies, if it is ticking. Defaults to 1.
"chance": [number] // [Optional] || The chance this effect is applied. Defaults to 1.
}
■ 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