JitseB / NPCLib

(Minecraft) NPCLib – Basic non-player character library.
MIT License
197 stars 49 forks source link

The NPC isn't configured to use skin overlays #168

Open squili opened 3 years ago

squili commented 3 years ago

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

keksgauner commented 3 years ago

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

squili commented 3 years ago

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.