How to disguise npc as a players skin

Discussion in 'Plugin Development' started by Mang0eZPvP, Aug 29, 2013.

  1. Offline

    Mang0eZPvP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok i need to know how to spawn in a villager with the same skin as a player when for example they leave the game or type a command down? Now i know this is posible, just go mcpvp.com and ask someone to leave the game u will see a villager will spawn with the players skin. Thank for future help :)
  2. Offline

    MrNegaBlo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Just to help with the answers. Does it actually look like a CLONE of the player? or is it the squidwards you find in villages?
  3. Offline

    Rprrr

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Mang0eZPvP
    That's not a villager, that's an NPC.

    You could go ahead and write your own way of spawning NPC's, but I think you're not capable of doing that. Browse the internet and find TopCat's NPC library, you can use this to easily spawn NPC's and have them do basic things. Chance is you have to update it by yourself, but that shouldn't be too much of a problem.
  4. Offline

    Mang0eZPvP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    No see what i want is to make a clone of a villager/NPC that has a player skis, i just need away to change the texture thats it the rest i can do easy
  5. Offline

    mollekake

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Umm, you sure it's a villager? Becuase with their arms and large head, a player skin would look wayyyy off. It's probably a custom entity they make(probably a zombie since it is the same size as a player), and do some packet stuff to make it look like the player.
  6. Offline

    Mang0eZPvP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Why would they make it so it would make villagwr noises??
  7. Offline

    CaptainBern BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    They just spawn an npc with that skin, done. The skin is handeled client-side, because the server send the packet of the npc (which includes a name) client looks for that name in the skin database, if found > render skin on npc, if not render default steve skin. Also giving custom entities player skin is kinda impossible but I do remember when I browsed the source code there was this var that defined the location of the skin, so myabe you can get the players skin url location, and set that as the skin location, doubt it will work though...

    This post has been edited 1 time. It was last edited by CaptainBern Aug 30, 2013.
  8. Offline

    Mang0eZPvP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    New to packets so what packets are there or could you send me a link to them all?
  9. Offline

    CaptainBern BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  10. Offline

    Mang0eZPvP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  11. Offline

    phips99

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Mang0eZPvP You have to modify the
    Spawn Named Entity (0x14) Packet
  12. Offline

    CaptainBern BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Mang0eZPvP Google bukkit npc-lib, kumpelbase2 is amking/made one. (Sorry if I misspelled his name)
  13. Offline

    Mang0eZPvP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Couldnt find dl libk so i made new thread post
  14. Offline

    Rprrr

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm wondering why no one reads my post. I believe I gave the answer you are all looking for already.
  15. Offline

    Mang0eZPvP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I did i changed
    th title to npc and looked into topcats libary. Just on another note am i allouder to put the remote entitys source code into my own plugin?

Share This Page