Triggers
trigger/projectile_hit
Projectile Hit Trigger
Fires when a projectile (arrow, snowball, trident, etc.) hits a block or entity.
Note: hitEntity and hitBlock are mutually exclusive — only one will be set per event. The shooter output is an entity — use the Is Player node to check whether a player fired the projectile and extract the Player reference.
Outputs
| Name | Type | Description |
|---|---|---|
exec |
exec | Fires when a projectile hits something. |
shooter |
entity | Entity (player or mob) that fired the projectile (null if fired by a block dispenser). |
projectileType |
string | Projectile entity type (e.g. ARROW, SNOWBALL, TRIDENT). |
hitEntity |
entity | Entity that was hit (null if it hit a block). |
hitBlock |
string | Material of the block that was hit (empty if it hit an entity). |
location |
location | Location of impact. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
projectileType |
string | "" |
Leave blank for any projectile, or specify e.g. ARROW. |
Examples
Explosive arrows
Create an explosion when an arrow hits something.
- Set Projectile Type Filter to ARROW
- Connect location → Explosion node
- Set power to 2, set fire to false