Usage
sl Permission: nmentities.spawnlook Player-only: yes
Arguments
Examples
Why it exists
This is the third of the three “where”:spawn puts one on you, spawnat puts one at coordinates, and this one puts one where you point.
It exists mostly for custom items. A plugin like Nexo runs an item’s commands on right-click as the player, but hands the command no way to say which block was clicked. A ray-trace from the player’s eyes at that moment lands on exactly that block — so a right-click-to-summon item works without either plugin knowing about the other.
Notes
- The reach is the player’s own
block_interaction_rangeattribute, not a fixed number, so creative mode, an attribute modifier or another plugin all move it correctly. An item that summons on right-click must not become one that summons across the map because the player happened to be facing the horizon. - If nothing is in reach the command says so and names the distance it tried, rather than silently doing nothing.
- The mob lands against the face that was hit, in the open space beside the block rather than inside it — the same placement a spawn egg makes.

