Controllable NPCs Only Viewable by 1 Player

Discussion in 'Plugin Development' started by xWatermelon, Jul 22, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    xWatermelon

    I need to make a player NPC that is only viewable by 1 player. I also need to be able to change the item in hand and teleport the NPC. I believe that this can be done with packets, but I am not exactly sure which ones. Can anyone please help?
     
  2. Offline

    pope_on_dope

    do you already know how to create an NPC? they're extremely hard to do, you might want to look at an open-spource already released plugin to get the basis of NPCs if not
     
  3. Offline

    xWatermelon

    Yes, I do. But I only know how to make it viewable to everyone. Is there some specific packet that will allow me to display it to one player only?
     
  4. Offline

    pope_on_dope

    can you cast the NPC is a viable player? if so, you can use the hide player method, i'm not sure though, i've never worked with NPCs
     
  5. Offline

    Chiller

    xWatermelon You would have to either modify packets or use ProtocolLib
     
  6. Offline

    xWatermelon

    Which packet(s)?

    Do you know which packets are used? Comphenix

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  7. Offline

    Comphenix

Thread Status:
Not open for further replies.

Share This Page