samolego/FabricTailor

[Suggestion] API For mod developers

Closed this issue · 5 comments

Hi there.

I was wondering if there is currently a way, or if not, if a way can be added, to get skins from the mod.

Say I have a server side mod that relays chats to discord, and I want to use the head of a player as an avatar, is there a way to get the URL from the mod for the active skin?

Yes, there is exactly this method available :)

Thanks for the reply :). Does this only work with Mojang skins or also with custom skins (like your mod supports)?

It gets you the set skin id, which you can use in combination with https://mc-heads.net/avatar/textureid

Yeah, works with fabrictailor skin and falls back to mojang if not set.