Elementium Sign in
Contents

Starts when · Starts a flow

Before a phantom spawns

Starts just before a phantom spawns for a player who has not slept. Cancel it to keep phantoms away.

Basic plan m.on.phantom_pre_spawn

In a flow

“When before a phantom spawns, the steps wired after it run.”

When phantom pre spawn → Broadcast {trigger.reason}

What it does

Starts just before a phantom spawns for a player who has not slept. Cancel it to keep phantoms away. 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 before a phantom spawns.

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

Reason Text

The reason of the phantom pre spawn. 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

Should abort spawn Yes / no

The should abort spawn of the phantom pre spawn. e.g. true

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

Connects toAdd a forum tagAdd onboarding questionAdd to a counterAlarms that are dueAndAutoMod: Discord's word listsBluesky latest postBoard as emojiand 573 more

Spawn location Location

The spawn location of the phantom pre spawn. e.g. world 10 64 -3

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

Spawning entity Entity

The spawning entity of the phantom pre spawn. 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

Type Text

The type of the phantom pre spawn. 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

Often next

Related in Starts when

Wires and sockets · Data values · Plans