Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add support for FabricTailor skins #26

Open
elhertz opened this issue Sep 12, 2021 · 7 comments
Open

[Feature Request] Add support for FabricTailor skins #26

elhertz opened this issue Sep 12, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@elhertz
Copy link

elhertz commented Sep 12, 2021

Display FabricTailor heads on discord.
Hope it is possible, thanks!

@emielderckx
Copy link

emielderckx commented Sep 12, 2021

Tom is right

@Tom-The-Geek
Copy link
Member

FabricTailor's primary purpose is to allow changing of skins on regular server/in singleplayer, so I see no reason for it to be unsupported; however, SkinRestorer will probably never be supported officially, as it is specifically designed for offline mode servers.

Also, @emielderckx your phrasing sounds a little like you are attacking the issue author, there are better ways of explaining that piracy is unsupported :P

@Tom-The-Geek Tom-The-Geek added the enhancement New feature or request label Sep 12, 2021
@Tom-The-Geek Tom-The-Geek changed the title [Feature Request] add support for FabricTailor and SkinRestorer skins [Feature Request] Add support for FabricTailor skins Sep 12, 2021
@elhertz
Copy link
Author

elhertz commented Sep 12, 2021

@emielderckx you are right. I should have thought about it before asking for support. My bad.
@Tom-The-Geek thank you for taking my request in consideration.

@samolego
Copy link

Hi there, author of FabricTailor here :).
You could request skin value from FT's interface TailoredPlayer
(see code). Then decode that string (it's encoded using Base64 format), what you're looking for is SKIN -> url value.

@samolego
Copy link

samolego commented Sep 12, 2021

(edit)

From
by calling ((TailoredPlayer) player).getValue(); you'd get a string like this


ewogICJ0aW1lc3RhbXAiIDogMTYzMTc5ODEzMzY1OCwKICAicHJvZmlsZUlkIiA6ICI5NTBhOTg3ZDBkNDA0OThhYmU5OGRkMTc1NzFlNWUyZiIsCiAgInByb2ZpbGVOYW1lIiA6ICJzYW1vX2xlZ28iLAogICJ0ZXh0dXJlcyIgOiB7CiAgICAiU0tJTiIgOiB7CiAgICAgICJ1cmwiIDogImh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZWIyOWVkYTk1OTc5MWY1NGMyNmMyMzI4MzJiNzY2MDRlYmExYWM0ZmU0MTZhZWIzNTZjMzM1ZWExZTFiYmU3IgogICAgfSwKICAgICJDQVBFIiA6IHsKICAgICAgInVybCIgOiAiaHR0cDovL3RleHR1cmVzLm1pbmVjcmFmdC5uZXQvdGV4dHVyZS8yMzQwYzBlMDNkZDI0YTExYjE1YThiMzNjMmE3ZTllMzJhYmIyMDUxYjI0ODFkMGJhN2RlZmQ2MzVjYTdhOTMzIgogICAgfQogIH0KfQ==

which you then decode and get

{
  "timestamp" : 1631798133658,
  "profileId" : "950a987d0d40498abe98dd17571e5e2f",
  "profileName" : "samo_lego",
  "textures" : {
    "SKIN" : {
      "url" : "http://textures.minecraft.net/texture/eb29eda959791f54c26c232832b76604eba1ac4fe416aeb356c335ea1e1bbe7"
    },
    "CAPE" : {
      "url" : "http://textures.minecraft.net/texture/2340c0e03dd24a11b15a8b33c2a7e9e32abb2051b2481d0ba7defd635ca7a933"
    }
  }
}

@samolego
Copy link

Leaving crafatar/crafatar#54 for reference.

@samolego
Copy link

samolego commented Feb 9, 2022

There seems to be a way to do this using https://mc-heads.net/
(comment in crafatar issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants