Elementium Sign in
Contents

Entities & mobs · Step

Spawn in front of a player

Spawn a mob a few blocks in front of a player, turned to face them. Counts toward the 50 spawns a run.

Basic plan m.entity.spawn_ahead

In a flow

“When a player uses a command → Spawn in front of a player: minecraft:zombie, 3 blocks.”

When a player uses a command → Spawn in front of a player: minecraft:zombie, 3 blocks.

What it does

Spawn a mob a few blocks in front of a player, turned to face them. Counts toward the 50 spawns a run. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 1 value later steps can use. Find it under Entities & mobs in the palette.

When to use it

Use it when the flow needs to: spawn a mob a few blocks in front of a player, turned to face them. Counts toward the 50 spawns a run.

When not to

If nothing should change in Discord, a value node or a check is lighter.

Typical wiring

Sockets: settings you can wire

Player Player

The player to spawn it in front of.

What goes there: Type it in the side panel, or wire in a player. e.g. Alex

If it's empty: Optional. Left empty and unwired, the step runs without it.

Distance Number

How many blocks in front of them.

What goes there: Type it in the side panel, or wire in a number. e.g. 42

If it's empty: Optional. Left empty and unwired, it uses 3.

Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 501 more

Name Text

A name shown over its head. Empty for none. Variables allowed; MiniMessage tags like <gold> work.

What goes there: Type it in the side panel, or wire in text. e.g. Hello there

If it's empty: Optional. Left empty and unwired, the step runs without it.

Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 845 more

Values it gives

Entity Entity

What spawned. Wire it into any Entity pin. 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 Entities & mobs

Wires and sockets · Data values · Plans