Fire Projectile

Entity Action

Fires a projectile from the entity.

Type ID: ope:fire_projectile

Fields

Field Type Default Description
entity_type Identifier The ID of the entity type that will be fired.
cooldown Integer The number of ticks the player has to wait between uses of this power.
hud_render Hud Render Specifies how and if a cooldown bar is rendered.
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 String optional NBT data of the entity.

Example

"entity_action": {
    "type": "ope:fire_projectile",
    "entity_type": "minecraft:arrow",
    "cooldown": 2,
    "hud_render": {
        "should_render": false
    },
    "tag": "{pickup:0b}",
    "key": {
        "key": "key.attack",
        "continuous": true
    }
}