Entities & mobs · Step
Face a location
Turn an entity so it looks at a spot, from where it stands.
m.entity.face_location
In a flow
“Every second → Nearest entity → Face a location: Player location.”
Every second → Nearest entity → Face a location: Player location.
What it does
Turn an entity so it looks at a spot, from where it stands. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. Find it under Entities & mobs in the palette.
When to use it
Use it when the flow needs to: turn an entity so it looks at a spot, from where it stands.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Entity Entity
-
The entity it's about: wire one in, like Entity from Spawn an entity.
What goes there: Type it in the side panel, or wire in an entity. e.g. Zombie
If it's empty: Optional. Left empty and unwired, the step runs without it.
- Towards Location
-
The spot it turns to face: wire a location in, or type world x y z.
What goes there: Type it in the side panel, or wire in a location. e.g. world 10.5 64 -3.2
If it's empty: Optional. Left empty and unwired, the step runs without it.