Elementium Sign in
Contents

Starts when · Starts a flow

When a projectile hits something

Starts when an arrow, snowball, trident or other projectile hits a block or an entity.

Basic plan m.on.projectile_hit

In a flow

“When a projectile hits something, the steps wired after it run.”

When a projectile hits an object → Broadcast {trigger.entity_type}

What it does

Starts when an arrow, snowball, trident or other projectile hits a block or an entity. It starts a flow, and gives the steps after it values about what happened. It gives 5 values later steps can use. Find it under Starts when in the palette.

When to use it

Use it to start a flow when a projectile hits something.

When not to

If the flow should start from a click or a command instead, pick that trigger: a flow has exactly one.

Typical wiring

Values it gives

Entity Entity

The entity of the projectile hit. e.g. Zombie

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 554 more

Entity type Text

The entity type of the projectile hit. e.g. minecraft:stone

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more

Hit block Block

The hit block of the projectile hit. e.g. Stone

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 554 more

Hit block face Text

The hit block face of the projectile hit. e.g. minecraft:stone

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more

Hit entity Entity

The hit entity of the projectile hit. e.g. Zombie

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 554 more

Often next

Related in Starts when

Wires and sockets · Data values · Plans