shoot
Launches a projectile of the specified entity type from the player.
Categories: combat
Required arguments
| Key(s) | Description | Type |
|---|---|---|
projectile | The entity type to launch as a projectile, e.g. ARROW or SNOWBALL. Choices: any EntityType value | ENTITY |
Optional arguments
| Key(s) | Description | Type | Default |
|---|---|---|---|
inherit_velocity | Whether the projectile should inherit the player's current velocity. | BOOLEAN | false |
launch-at-location | Whether the projectile should be teleported to the trigger location after launch. | BOOLEAN | false |
allow_pickup | Whether the projectile can be picked up by players (applies to arrows). | BOOLEAN | false |
no_source | Whether the projectile should have no shooter, preventing attribution to the player. | BOOLEAN | false |
damage | EXPRESSION | 2 | |
pierce_level | The number of entities the projectile can pierce through (applies to arrows). | EXPRESSION | 0 |
Trigger parameters required
PLAYER
Example
effects:
- id: shoot
args:
projectile: <EntityType>
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 |