NPC Skins

Discussion in 'Plugin Development' started by ISHLCMinecraft, May 23, 2014.

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

    ISHLCMinecraft

    I have looked into the last snapshot of Citizens and there was a command for changing the NPC's skin, but I didn't understood what happened there.
    Could anyone explain me how the hell does this work???
     
  2. Offline

    NathanWolf

    Sounds interesting, though I haven't seen it- is there a docs link for Citizens snapshots?

    I'm guessing this is UUID-related, since an NPC name no longer directly links to a skin, maybe you can set a skin via a UUID?
     
  3. Offline

    ISHLCMinecraft

  4. Offline

    NathanWolf

    That looks like setting a skin via UUID to me, but I can't be entirely sure :)
     
  5. Offline

    xTigerRebornx

    NathanWolf Perhaps read through the commit where it was added? From what I can see, it fetches the skin via UUID, then sets the NPC's skin, then respawns them (which I guess has a call that sets the skin)
     
  6. Offline

    ISHLCMinecraft

    But how the hell I set the NPC's skin?
     
  7. Offline

    Wizardgreatar


    Be aware that this feature only works on clients which are on 1.7.9 or above. Anyone on an older client will only see the NPC's "display name's" skin.

    Merely select the NPC whose skin you wish to modify, and type /npc skin <playername>. This will change the NPC's "skin name", without modifying the NPC's "display name". The NPC will then assume the skin of it's "skin name's" namesake. Use /npc rename <name> to change the NPC's display name. This will no longer change the skin.

    (I know this thread is several months old. However, seeing as no one answered this here, I decided to, myself having experienced the annoyance of searching through countless threads and discovering the question but not the answer)
     
  8. Offline

    Cirno

    If you want to get technical, the server sends the information to the player about the skin the player uses. Does this mean we can use any skin on any player?
    Yes.
    But can we add capes or use other websites other than Minecraft's official repos for User skins?
    No. The data sent by the server is signed with Yggdrasil's private key.
     
Thread Status:
Not open for further replies.

Share This Page