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] Custom Cloak Image Rendering for Player Models #17

Open
Clemintina opened this issue Jan 1, 2025 · 1 comment
Open

[Feature] Custom Cloak Image Rendering for Player Models #17

Clemintina opened this issue Jan 1, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@Clemintina
Copy link

Clemintina commented Jan 1, 2025

Hello,

I am writing to suggest a feature related to Cloaks. My suggestion is the following:

Feature Summary:
Introduce the ability to add custom cloak images to player renders, enhancing the visual customisation and engagement for users on platforms like Discord and Minecraft related websites. This feature would allow users to submit a custom image via a URL or a locally cached asset.

Feature Preferred Implementation:

POST /{mode}/{playerId}/cloak
Content-Type: multipart/form-data or Content-Type: application/json

{
  "cloakUrl": "http://optifine.net/capes/{playerName}.png",  // Preferred method
  "cloakImage": (binary image data)             // Used mainly for testing
}

@NickAcPT NickAcPT added the enhancement New feature or request label Jan 1, 2025
@NickAcPT
Copy link
Owner

NickAcPT commented Jan 1, 2025

Hey there, thank you for reaching out with a feature request!

Although not documented yet as I've not had the time to do so, NMSR does support rendering with custom textures by doing a multipart/form-data POST form request to /{mode}.

For a custom skin, use skin or texture as the field name, and for the cloak use cape for the name. Both need to be binary data with a PNG image.
These custom POST requests support all the normal parameters, although instead of using them as query parameters, you instead need to send them along as multipart fields.

Please let me know if the existing functionality serves your purposes, or if something else needs to be implemented.

Cheers and happy new year ^^

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

2 participants