Skip to content

Fix equipment not switching in MC 26.1 due to NBT format change#165

Open
klao wants to merge 1 commit into
sleepingdragoninn:26.1from
klao:fix-equipment-switching
Open

Fix equipment not switching in MC 26.1 due to NBT format change#165
klao wants to merge 1 commit into
sleepingdragoninn:26.1from
klao:fix-equipment-switching

Conversation

@klao
Copy link
Copy Markdown

@klao klao commented May 18, 2026

Minecraft 25w06a (before 1.21.5) moved armor/offhand out of the Inventory array (slot indices 100-103 and -106) into a new equipment compound tag. This change adds a new equipment component type with an unbounded-map codec that handles the {slotName -> ItemStack} compound format.

I have tested this with a Fabric server on 26.1.2.

This fixes #164

Minecraft 25w06a (before 1.21.5) moved armor/offhand out of the Inventory array
(slot indices 100-103 and -106) into a new `equipment` compound tag. This change
adds a new `equipment` component type with an unbounded-map codec that handles
the {slotName -> ItemStack} compound format.

Fixes sleepingdragoninn#164
@sleepingdragoninn
Copy link
Copy Markdown
Owner

Looks good, could you send a screenshot of the preview while full and empty?

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.

2 participants