How to create an NPC with ServerNPC
You can create it in various ways. The first and most common it's Mojang names. But here's the list of the supported methods in ServerNPC.
- Self Skin
To create a NPC with Mojang name it's very very simple.
If you typed this command, you will notice the NPC has spawned with my skin, but you can change my name (iSnakeBuzz_) for anyone name.
MineSkin.org allows you to generate skin texture data signed by Mojang. These can be used on ingame skull blocks or to change a player's skin using some packet magic :).
Said by Mineskin.
It allow you to upload Skins without needing a Minecraft Account. Well, you can use the generated IDS in ServerNPC to create fantastics NPCs.
And done, you've created a NPC with Mineskin. Very simple, right?
Well, to use this you need PlaceholderAPI installed in your Server. If you don't know what it is, I fully recommend you to read the official page. But simplifying that, it's a library of placeholders.
First of all you need to install the
Playerextension to continue.
/papi ecloud download Player
Execute both commands to a correct installation of the extension. Then we can continue with the NPC creation.
Well, that very easy, if you don't see your Skin, probably you are a cracked player, at the moment we are working on a fix to work with SkinsRestorer but do not have a estimated time for that.