Citizens NPCs

Discussion in 'Spigot Plugin Development' started by Aussie, May 28, 2016.

  1. Is it possible to create an NPC with the api, but only display it to a certain player or players? Or would I need to do this with my own packets etc?

    Thanks, Sebastian.
  2. You would have to do packets if you want it to only be displayed to certain players.
  3. Oh ok. Any tutorials on creating NPC's with packets you know of :3?
  4. I could recommend you a german youtuber that explains (with code), how to spawn NPC's, move them, and if you understand a bit of coding, you should be able to show them only to specific players. Like I said the problem is that he is german, but there should be several other tutorials out there.
    If you still want to check him out, he is called Ingrim4, just search it on youtube.

    I also found this video, but I didn't watch it, try it yourself:
  5. Ok thanks, it would be easy to only display to one player by, just sending the packet to the specific player handle.