NPCLib icon indicating copy to clipboard operation
NPCLib copied to clipboard

The NPC isn't configured to use skin overlays

Open squili opened this issue 3 years ago • 2 comments

When sending out the entity metadata for the NPC, the skin overlay isn't set. This means that things like hats don't render on the NPCs. This can be fixed by adding a byte with value 0x7F and index 17 to the metadata packet. See: packet metadata

squili avatar Jun 26 '21 04:06 squili

I didn't know anything about this. Did you mean something like this?

~~LivingEntity le = (LivingEntity) npc;~~ ~~le.getMetadata("0x4D").get(17);~~

I think I need to read about this

keksgauner avatar Jul 29 '21 12:07 keksgauner

I'm not exactly sure what NMS code you'd use for this. I wasn't able to get any NMS changes in the library to work on my test server, so I wasn't able to make a PR for this. All I know is that, according to the wiki.vg docs, that's what you need to add to get it to work.

squili avatar Jul 29 '21 19:07 squili