Starts when · Starts a flow
When a mob is struck by lightning
Starts when lightning hits an entity and changes it, like a villager becoming a witch.
m.on.entity_zap
In a flow
“When a mob is struck by lightning, the steps wired after it run.”
When lightning strikes an entity → Broadcast {trigger.entity_type}
What it does
Starts when lightning hits an entity and changes it, like a villager becoming a witch. It starts a flow, and gives the steps after it values about what happened. It gives 6 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 mob is struck by lightning.
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
- Bolt Entity
-
The bolt of the entity zap. 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 Entity
-
The entity of the entity zap. 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 entity zap. 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
- Replacement entity Entity
-
The replacement entity of the entity zap. 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
- Transform reason Text
-
The transform reason of the entity zap. 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
- Transformed entity Entity
-
The transformed entity of the entity zap. 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