Elementium Sign in
Contents

Plugins · Step

Make an NPC watch players

Make an NPC keep turning its head towards the nearest player within 8 blocks, or stop.

Basic plan m.npc.set_look_at

In a flow

“When the server starts → Make an NPC watch players: guide.”

When the server starts → Make an NPC watch players: guide.

What it does

Make an NPC keep turning its head towards the nearest player within 8 blocks, or stop. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. Find it under Plugins in the palette.

When to use it

Use it when the flow needs to: make an NPC keep turning its head towards the nearest player within 8 blocks, or stop.

When not to

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

Typical wiring

Sockets: settings you can wire

Look at players Yes / no

On makes it turn to the nearest player within 8 blocks.

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

If it's empty: Optional. Left alone, it's on.

Connects fromAdd a labelAdd to a leaderboardAge from birthdayAI check a messageAnagram checkAndAnswer a deadlineAnti-nuke guardand 270 more

Often next

Related in Plugins

Wires and sockets · Data values · Plans