Skip to content

Change resin trim material to gold for 1.21.2 clients - #1330

Merged
kennytv merged 1 commit into
ViaVersion:masterfrom
roccodev:fix/resin-armor-trim
Sep 28, 2026
Merged

kennytv merged 1 commit into
ViaVersion:masterfrom
roccodev:fix/resin-armor-trim

Conversation

@roccodev

Copy link
Copy Markdown
Contributor

Fixes resin trimmed armor appearing with missing textures/model. I tried copper too and IMO gold gets closer.

Screenshots

Server:
server
server

1.21.2 client (before):
before

1.21.2 client (after):
after
after

@roccodev
roccodev force-pushed the fix/resin-armor-trim branch from aaf4a99 to 0b38567 Compare September 22, 2026 07:36

// Change resin trim material to gold
final ArmorTrim1_20_5 trim = dataContainer.get(StructuredDataKey.TRIM1_21_4);
if (trim != null && trim.material().id() == 10) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trim materials are synchronized, not static/hardcoded. If you want to change anything about them, you need to update the registry data

@roccodev roccodev Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense, thanks! Is there a way to have it resolve the translatable in description too? I've noticed the string is present in the translation mappings, but it still appears as trim_material.minecraft.resin in game. I would imagine it'd have to be rewritten somewhere, but if so shouldn't it be earlier in the chain?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That needs rewriting inside registry data, too

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, so if they end up adding another material type the protocol responsible for it will add another description rewrite step? This should be good to go then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description should be rewritten in VV in every version, working on that right now as we are missing a few more rewritables for Components in registries.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I reverted my last change following ViaVersion/ViaVersion#5077

@roccodev
roccodev force-pushed the fix/resin-armor-trim branch from 9608045 to e3c020a Compare September 28, 2026 17:52
@kennytv
kennytv merged commit ddc776c into ViaVersion:master Sep 28, 2026
1 check passed
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