mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
feat: add MC 1.21.4 (protocol 769) support
Add complete protocol 769 support for Minecraft 1.21.4: - Version constants: Add 769 to supported versions, MC_1_21_4_Version constant, and version string mappings (including 1.21.3 -> 768 compatibility) - Item palette: 10 new items (Resin series + Eyeblossom), generated ItemPalette1214 - Entity palette: Remove CreakingTransient (149 entities, down from 150) - Block palette: 10 new blocks with correct blockstate ID ranges from server data - Packet palette: Serverbound packet ID reshuffling - PickItem split into PickItemFromBlock/PickItemFromEntity, new PlayerLoaded packet inserted after PlayerInput, subsequent IDs shifted accordingly. Clientbound unchanged. - PlayerLoaded: Send empty PlayerLoaded packet after JoinGame processing (>= 1.21.4) - EntityMetadata/DataComponents: Reuse 1.20.6 palettes (unchanged registries) - Update all version guard checks from MC_1_21_2 to MC_1_21_4 Made-with: Cursor
This commit is contained in:
parent
3acfc0aaa4
commit
f73148e5ec
12 changed files with 3699 additions and 11 deletions
|
|
@ -153,7 +153,8 @@ namespace MinecraftClient.Protocol
|
|||
int[] suppoertedVersionsProtocol18 =
|
||||
{
|
||||
4, 5, 47, 107, 108, 109, 110, 210, 315, 316, 335, 338, 340, 393, 401, 404, 477, 480, 485, 490, 498, 573,
|
||||
575, 578, 735, 736, 751, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768
|
||||
575, 578, 735, 736, 751, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768,
|
||||
769
|
||||
};
|
||||
|
||||
if (Array.IndexOf(suppoertedVersionsProtocol18, protocolVersion) > -1)
|
||||
|
|
@ -353,6 +354,10 @@ namespace MinecraftClient.Protocol
|
|||
return 767;
|
||||
case "1.21.2":
|
||||
return 768;
|
||||
case "1.21.3":
|
||||
return 768;
|
||||
case "1.21.4":
|
||||
return 769;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -435,6 +440,7 @@ namespace MinecraftClient.Protocol
|
|||
766 => "1.20.6",
|
||||
767 => "1.21",
|
||||
768 => "1.21.2",
|
||||
769 => "1.21.4",
|
||||
_ => "0.0"
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue