Skip to content

feat(minimessage): Add info about requiring namespace for custom textures in paths - #793

Merged
Strokkur424 merged 3 commits into
PaperMC:mainfrom
Andre601:feat/update-minimessage-sprite-path-info
Sep 27, 2026
Merged

Strokkur424 merged 3 commits into
PaperMC:mainfrom
Andre601:feat/update-minimessage-sprite-path-info

Conversation

@Andre601

@Andre601 Andre601 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Textures that are added to an atlas from a different namespace require you to add said namespace to the Sprite path to actually show.

Example: Assume a texture called ruby.png exists in assets/example/textures/item/ and is loaded by the items Atlas (due to it collecting everything under item/ directory).
The correct way to display the sprite now is <sprite:items:"example:item/ruby">

This PR updates the docs on the sprite tag to not only mention that, but also that the sprite name to use depends on the atlas, as it may or may not add a prefix for the path to use.

@github-actions

github-actions Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
papermc-docs ✅ Ready (View Log) Visit Preview 360e744

Comment thread src/content/docs/adventure/minimessage/format.mdx Outdated
The goal of this change was to raise awareness of the sprite being namespaced. The proposed change to this was, in my opinion, far too convoluted and wordy.
For the goal of displaying that namespaces may be relevant, expanding the example should be good enough.
@Strokkur424
Strokkur424 merged commit b01af0c into PaperMC:main Sep 27, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — e69c440c Deployed Sep 27, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants