Skip to content

feat(protocol): ✨ added Minecraft 26.2 support - #1183

Open
caunt wants to merge 1 commit into
mainfrom
feat/minecraft-26-2-support
Open

feat(protocol): ✨ added Minecraft 26.2 support#1183
caunt wants to merge 1 commit into
mainfrom
feat/minecraft-26-2-support

Conversation

@caunt

@caunt caunt commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Summary

Added Minecraft 26.2 / protocol 776 support and updated affected latest-protocol login, join-game, and brigadier behavior.

Rationale

Velocity added 26.2 support in PaperMC/Velocity d7ad052. Void needs matching protocol awareness so 26.2 clients can complete login and parse latest command argument IDs.

The checked protocol page revision was Java Edition protocol/Packets oldid 3640366. That revision currently lists Join Game fields including "Sea level" followed by "Enforces Secure Chat"; the requested Velocity commit supplies the 26.2 delta by inserting the online-mode boolean between those fields.

Changes

  • Registered ProtocolVersion.MINECRAFT_26_2 as protocol 776.
  • Added 26.2 Login Success session UUID serialization and generated a random session UUID for 26.2+ proxy login completion.
  • Added latest-family Join Game packet serialization for 1.20.2+ and the 26.2 online-mode boolean.
  • Updated brigadier parser mappings so minecraft:color is removed at 26.2 and minecraft:team_color takes parser ID 16.
  • Added unit coverage for protocol registration, Login Success, Join Game, brigadier mappings, and latest Join Game packet IDs.

Verification

  • dotnet test tests/Void.UnitTests/ -p:UseSharedCompilation=false
  • dotnet test tests/Void.UnitTests/ --no-restore -m:1
  • dotnet build -m:1

The plain dotnet test tests/Void.UnitTests/ command hit intermittent csc exit code 132 in different projects; disabling shared compilation or running single-node completed successfully.

Performance

No measured performance impact. Changes are version-gated packet field reads/writes and static mapping additions.

Risks & Rollback

Risk is limited to latest protocol packet serialization and command argument mapping. Roll back by reverting this commit if 26.2 wire details change upstream.

Breaking/Migration

No user migration required.

Links

Registered protocol 776 and updated latest protocol packets so 26.2 clients receive the new login session UUID, Join Game online-mode flag, and team_color brigadier argument mapping.
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.

1 participant