Client-side NPCs
Page describing how to use syntaxes for client-side NPCs.
What is client-side NPC? Client-side NPCs are same as NPCs from Citizens plugin, but only certain players can see them. You can use a lot of extra syntaxes to customize their actions. Still skPapi doesn't provide any type of NPC AI, so if you want the NPC for example attacking players, you will have to do some coding yourself.
How to spawn client-side NPC? effect: create clientside npc with id %integer% with name %string% with skin %skin% with uuid %string% with 2nd skin layer %boolean% at location %location% for %players% Keep in mind, that nickname of NPC will be visible in tablist, you can hide it using remove fake player effect. The maximal length of the nickname is 16, you can still use player tags to add prefix, suffix, or change the color. You can apply same effects on NPC as you can see in Client-side entities and Client-side entities modifications. Example: create clientside npc with id 101 with name "NPC" with skin {_skin} with uuid (new classic uuid) with 2nd skin layer true at location player's location for player
How to remove client-side NPC? Same as client-side entities, all actions for client-side entities work for NPCs too, look in the Client-side entities category.
Last updated
Was this helpful?