Fire Projectile (Entity Action Type)
Fires one or more projectiles or entities.
Fires one or more projectiles or entities.
Type ID: apoli:fire_projectile
Fields
| Field | Type | Default | Description |
|---|---|---|---|
entity_type | Identifier | The identifier of the projectile or entity that will be launched. | |
entity_id | Identifier | optional | Identifier for tracking the projectile |
texture_location | Identifier | optional | If specified, the texture used for the custom projectile and entity_type is ignored. |
count | Integer | 1 | The amount of projectiles to fire each use. |
speed | Float | 1.5 | The speed applied to the fired projectile. |
divergence | Float | 1.0 | How much each projectile fired is affected by random spread. |
sound | Identifier | optional | If set, the sound with this ID will be played when the power is used. |
tag | NBT | optional | NBT data to apply to projectiles |
entity_action_before_firing | Entity Action | optional | If specified, the entity action to execute on the entity firing the projectile just prior to the projectile being created. |
bientity_action_after_firing | Bi-entity Action | optional | If specified, the bi-entity action to execute with the projectile owner the actor, and the projectile as the target as soon as the projectile is created. |
block_action_on_hit | Block Action | optional | If specified, the block action to execute on the block the projectile lands on upon having it land on it. |
bientity_action_on_miss | Bi-entity Action | optional | If specified, the bi-entity action to execute with the projectile owner as the actor, and the projectile as the target upon missing. |
bientity_action_on_hit | Bi-entity Action | optional | If specified, the bi-entity action to execute with the projectile as the actor, and the hit entity as the target upon hitting an entity. |
owner_target_bientity_action_on_hit | Bi-entity Action | optional | If specified, the bi-entity action to execute with the projectile owner as the actor, and the hit entity as the target upon hitting an entity. |
block_action_cancels_miss_action | Boolean | false | Determines if the block_action_on_hit action will cancel the bientity_action_on_miss action. |
block_condition | Block Condition | optional | If specified, the block condition that the block targeted by the block_action_on_hit field must meet in order for that to run. |
bientity_condition | Bi-entity Condition | optional | If specified, the bi-entity condition with the projectile as the actor and the target as the target for the projectile to actually hit the target instead of pass through. |
owner_bientity_condition | Bi-entity Condition | optional | If specified, the bi-entity condition with the projectile owner as the actor and the target as the target for the projectile to actually hit the target instead of pass through. |
tick_bientity_action | Bi-entity Action | optional | If specified, the bi-entity action with the projectile owner as the actor, and the projectile as the target that is run each tick of the projectile’s lifespan. |
projectile_action | Entity Action Type | optional | If specified, this entity action will be executed on the projectile or entity that will be launched. |
Examples
"entity_action": {
"type": "apoli:fire_projectile",
"entity_type": "minecraft:snowball",
"divergence": 3.0,
"count": 3
} This example will fire three snowballs at where the player is facing.