Change Your Skin in Game with These Amazing Mods for Minecraft
Now, luckily you can make your own mob. It is a beast of a task. First, you need a complete entity data structure. This can be found here: https://github.com/Minecraft-I/Mod-Developer-Survey/blob/master/EntityData.json#L91 As you can see we also used the insides of an entity to link the EID to the Display Info and Sound. You can retrieve these values from the display object, or simply getDisplayInfo and getSoundInfo.
skin changer mod minecraft
And it is also the hardest part! As you can see, the Minecraft Launcher will call the update() method of the MinecraftSkinUpdater class, which will apply a skin using Java Reflection. The MinecraftSkinUpdater class, however, does not implement Serializable, so it cannot be stored in the entity. Additionally, the MinecraftSkinUpdater class wont have the information about whether its a MinecraftSkinUpdater.ITEM and therefore can not tell the moment when you should update the original one. In this process, it also stays in the main thread! We know this is a hassle and thus, we also introduced the MinecraftSkinUpdater.nextSkinNow() method. We had to make some small changes in the EntityFetcher, but overall it is working more or less as it should. Feel free to open up an issue if you find any faults.
Now you can skin your mobs and easily access them with a new interface. To start making a custom mob, you first need to create a MinecraftSkin. After this, you can generate the Entity from this MinecraftSkin with EntityFetcher. You should use MOB_TYPE_LINKED_ENTITY, MOB_TYPE_NETWORKED_ENTITY, or any of the other MOB_TYPE_* for moving/mutable entities. Next step is to implement the EntityUpdateHandler interface. It is an easy job for the MOB_TYPE_* mob types, but for the vanilla and minimap mob types, there are some special features to work with!