shoot_arrow
Shoots an arrow from the player, optionally inheriting bow fire and velocity.
Categories: combat
Optional arguments
| Key(s) | Description | Type | Default |
|---|---|---|---|
inherit_velocity | Whether the arrow should inherit the player's current velocity. | BOOLEAN | false |
launch-at-location | Whether the arrow should be teleported to the trigger location after launch. | BOOLEAN | false |
allow_pickup | Whether the arrow can be picked up by players. | BOOLEAN | false |
no_source | Whether the arrow should have no shooter, preventing attribution to the player. | BOOLEAN | false |
damage | The base damage of the arrow. If omitted, uses the arrow's default damage. | EXPRESSION | 2 |
pierce_level | The number of entities the arrow can pierce through. | EXPRESSION | 0 |
Trigger parameters required
PLAYER
Example
effects:
- id: shoot_arrow
args:
inherit_velocity: true # ← Optional
launch-at-location: true # ← Optional
allow_pickup: true # ← Optional
no_source: true # ← Optional
damage: 2 + %level% # ← Optional
pierce_level: 1 + %level% / 20 # ← Optional
Behaviour
| Setting | Value |
|---|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |