Entities & mobs · Value
Entity location
Where an entity is right now, as a location and as separate x, y and z numbers.
m.entity.location_of
In a flow
“When a player right-clicks an entity → Entity location → Teleport to that location.”
When a player right-clicks an entity → Entity location → Teleport to that location.
What it does
Where an entity is right now, as a location and as separate x, y and z numbers. It's a value node: no white pins, it works out its answer when a step wired to it needs it. It gives 4 values later steps can use. Find it under Entities & mobs in the palette.
When to use it
Use it when the flow needs to: where an entity is right now, as a location and as separate x, y and z numbers.
When not to
For a value that never changes, type it into the setting instead of wiring a node.
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.
Values it gives
- Location Location
-
Where it is. e.g. world 3 64 0
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
- X Number
-
East-west. e.g. 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 toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more
- Y Number
-
Height. e.g. 64
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more
- Z Number
-
North-south. e.g. 0
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more