Skip to content

Fire Projectile

Entity Action Type

Fires one or more projectiles or entities.

Type ID: eggolib:fire_projectile

Note

This action type can spawn in entities with passengers.

Fields

Field Type Default Description
entity_type Identifier The identifier of the projectile or entity that will be launched.
divergence Float 1.0 Determines how much the projectile or entity that will be launched is affected by random spread.
speed Float 1.0 Determines the speed of the projectile or entity that will be launched.
count Integer 1 Determines the amount of projectiles or entities that will be launched.
tag String optional If specified, this NBT data will be added to the projectile or entity that will be launched.
entity_action Entity Action Type optional If specified, this action will be executed on the projectile or entity that will be launched.

Examples

"entity_action": {
    "type": "eggolib:fire_projectile",
    "entity_type": "minecraft:fireball"
}

This example will launch a Fireball in the direction the entity is facing.

"entity_action": {
    "type": "eggolib:fire_projectile",
    "entity_type": "minecraft:pig",
    "tag": "{Passengers: [{id: \"minecraft:armor_stand\"}]}"
}

This example will launch a Pig with an Armor Stand passenger.