Add Minecraft 1.21.5 (protocol 770) packet ID mappings#15
Open
RobertoVillegas wants to merge 1 commit intoExceptionflug:masterfrom
Open
Add Minecraft 1.21.5 (protocol 770) packet ID mappings#15RobertoVillegas wants to merge 1 commit intoExceptionflug:masterfrom
RobertoVillegas wants to merge 1 commit intoExceptionflug:masterfrom
Conversation
Update packet ID mappings for 1.21.5 (protocol 770): Clientbound packets shifted -1 due to ADD_EXPERIENCE_ORB removal: - OpenWindow: 0x35 -> 0x34 - CloseWindow (CB): 0x12 -> 0x11 - WindowItems: 0x13 -> 0x12 - WindowProperty: 0x14 -> 0x13 - SetSlot: 0x15 -> 0x14 - SoundEffect: 0x6F -> 0x6E - HeldItemChange (CB): 0x63 -> 0x62 Serverbound packets shifted +2 due to new PLAYER_LOADED and BUNDLE_ITEM_SELECTED packets: - BlockPlacement: 0x3C -> 0x3E - UseItem: 0x3D -> 0x3F Also adds missing HeldItemChange clientbound mapping for 1.21.2-1.21.4 (0x63) which was previously absent. All packet IDs verified against ViaVersion's authoritative enum definitions (ClientboundPackets1_21_5 / ServerboundPackets1_21_5). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
HeldItemChangeclientbound mapping for 1.21.2–1.21.4Companion PR: Exceptionflug/protocolize#268 (adds
MINECRAFT_1_21_5version constant)Addresses Exceptionflug/protocolize#267.
Changes
Clientbound (shifted -1 —
ADD_EXPERIENCE_ORBremoved in 1.21.5)Serverbound (shifted +2 — new
PLAYER_LOADEDandBUNDLE_ITEM_SELECTEDpackets)Serverbound (unchanged, no modifications needed)
ClickWindow (0x10), CloseWindow SB (0x11), PlayerPosition (0x1C), PlayerPositionLook (0x1D), PlayerLook (0x1E), HeldItemChange SB (0x33)
Bonus fix
Added missing
HeldItemChangeclientbound mapping for 1.21.2–1.21.4 (0x63), which was previously absent from the mappings list.Verification
All packet IDs verified against ViaVersion's authoritative enum definitions:
ClientboundPackets1_21_5.javaServerboundPackets1_21_5.javaClientboundPackets1_21_2.java(for the HeldItemChange gap fix)Disclosure
This contribution was researched and authored with the assistance of Claude (AI by Anthropic). Packet IDs were cross-referenced with ViaVersion's source to ensure correctness.
🤖 Generated with Claude Code