🦛
SkPapi
  • SkPapi
  • Described features of skPapi
    • Client-side entities
      • Modifications
      • Armor stands
    • Client-side holograms
    • Client-side tablist manipulation
    • Client-side NPCs
    • Client-side player tags
    • Client-side player model editing
    • Client-side teams
    • Client-side bossbars
    • Client-side world borders
    • Sign GUIs
  • Syntaxes
    • Expressions
    • Effects
    • Events
Powered by GitBook
On this page

Was this helpful?

  1. Described features of skPapi

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.

PreviousClient-side tablist manipulationNextClient-side player tags

Last updated 4 years ago

Was this helpful?