BruceChen
57a0dedb33
feat: add packet palette, data components, and protocol fixes for MC 1.21.2
...
Packet Palette (Phase 2.1):
- Create PacketPalette1212.cs with complete ID mapping for protocol 768
(131 clientbound + 60 serverbound play packets, plus config packets)
- Add new PacketTypesIn enum values: EntityPositionSync, MoveMinecartAlongTrack,
PlayerRotation, RecipeBookAdd/Remove/Settings, SetCursorItem, SetHeldSlot,
SetPlayerInventory
- Add new PacketTypesOut enum values: BundleItemSelected, ClientTickEnd
- Update PacketType18Handler routing for 1.21.2
Data Components (Phase 1.4):
- Create StructuredComponentsRegistry1212 with 67 components (was 57 in 1.21)
reflecting the new 1.21.2 DataComponents ordering
- Implement 11 new component parsers: ConsumableComponent, UseRemainderComponent,
UseCooldownComponent, DamageResistantComponent, EnchantableComponent,
EquippableComponent, RepairableComponent, GliderComponent, TooltipStyleComponent,
DeathProtectionComponent, ItemModelComponent
- Create FoodComponent1212 (simplified: nutrition/saturation/canAlwaysEat only;
eatSeconds/effects/usingConvertsTo moved to consumable/use_remainder)
- Create SubComponentRegistry1212 and route in StructuredComponentsHandler
Protocol Fixes:
- Fix PlayerPositionAndLook packet for 1.21.2 (new format: teleportId first,
added deltaMovement Vec3, flags as Int instead of Byte)
- Fix login success packet (remove strictErrorHandling read for >= 1.21.2)
- Fix ClientSettings/ClientInformation packet (add particleStatus VarInt)
- Add SetHeldSlot as alias for HeldItemChange in packet handler
Verified: MCC connects to 1.21.2 vanilla server, stays connected, chat works.
Made-with: Cursor
2026-03-20 03:25:20 +08:00
Anon
f83e7c5707
Preliminary 1.21 Support
2024-12-06 16:45:48 +01:00
Anon
08c5c15557
1.20.6 - Not working yet
2024-06-16 01:19:09 +02:00
Anon
790e0bfe55
Implemented 1.20.3
2024-01-30 12:51:47 +01:00
Anon
4f89e4fe36
Fixed a crash on non 1.20.2 versions
2024-01-29 22:40:17 +01:00
Anon
e13ba93f47
Added Configuration Packets mapping
2024-01-29 15:39:39 +01:00
Anon
4f957cee7e
1.20.2 Implementation, not tested
2023-11-15 15:42:27 +01:00
Anon
ae7ce35cc8
Fully Implemented 1.20
2023-06-08 19:27:28 +02:00
Anon
0b98628572
Added 1.8 entity handling
2023-03-28 13:39:18 +02:00
Anon
5d4ea515a7
Implemented 1.19.4, first pass, light testing
2023-03-21 20:28:05 +01:00
ReinforceZwei
657fc6117b
Upgrade protocol to 1.19.3
2023-01-10 18:27:48 +08:00
Milutinke
7a9bc7bd1d
Added 1.19.3 packet palette. TODO: Implement changes in the protocol handler.
2022-12-17 18:25:21 +01:00
BruceChen
ef39e8329c
[SKIP_BUILD] Change file encoding to UTF-8 with BOM
2022-11-28 13:55:05 +08:00
BruceChen
16c1d1fd77
Refactoring Settings.cs
2022-10-05 15:02:30 +08:00
BruceChen
1d52d1eadd
Fix all warnings & Trim ( #2226 )
...
* Fix AutoFishing crash
* Fix all warnings
* Remove DotNetZip.
* Fix the usage of HttpClient.
2022-10-02 18:31:08 +08:00
BruceChen
ca3cb39f12
Trim
2022-09-04 00:45:21 +08:00
BruceChen
af1485c753
login support
2022-08-24 12:37:22 +08:00
ORelio
1ce7850193
MC 1.17/1.18 Terrain/Entity/Inventory ( #1943 )
...
Merge branch 'master' of github.com:milutinke/Minecraft-Console-Client into milutinke-master
Manually fix merge conflicts
Additional changes:
- WindowItems: Fix data type for "elements" below 1.17
- DestroyEntities: Fix packet palettes and remove DestroyEntity
- EntityMetadata: Throw exception if health field mapping is not updated
Co-authored-by: Milutinke <bgteam@live.com>
Co-authored-by: BruceChen <MrChen131217@gmail.com>
2022-08-19 16:35:55 +02:00
BruceChen
a8bbb1ac76
Basic support for minecraft 1.19 ( #2084 )
...
* merge commit from milutinke
* chat signature & encrypted login
* Bug fix :EncryptionResponse format error below 1.18.2
* Implemented chat command signature
* Chat message parsing and verification for 1.19
* Add signature settings
* Update Simplified Chinese Translation
* Clear up comments
* Fix wrong variable naming
* Bug fix: SignatureV2 Processing
2022-08-15 17:55:44 +02:00
ReinforceZwei
9a9245f193
Update version to 1.18 ( #1836 )
2021-12-02 21:07:57 +08:00
alex-huff
8bd221c248
Add support for 1.17 ( #1630 )
...
* fix caps
* implement 1.17 without terrain
* properly switch order of Tracking Position and Locked for 1.17
* Update MinecraftClient/Protocol/Handlers/PacketTypesIn.cs
Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
2021-06-11 21:45:33 +08:00
ReinforceZwei
939c8fb383
Fix crash on unknown packet IDs on some Forge servers ( #1422 )
...
* Fix unknown packet ID cause crash (#1419 )
* Ignore unknown packet ID only if forge enabled
2021-01-18 20:12:53 +01:00
ReinforceZwei
2649e61a88
Fix 1.13 packet palette duplicated packet type
2020-08-27 19:33:08 +02:00
ReinforceZwei
3434d95b81
Add packet palettes ( #1236 )
...
* Add packet type palette
* Fix
* test new palette
* Fix 1.16.2 palette
* Add packet ID dumper
* Add document
* Update naming
* Delete old implementation of packet type
* Rename PacketTypeHandler to PacketType18Handler
* Fix packet type namespace
* Add dump to file method for packet type
* Rename packet palette version number
* Replace unknown packet type to explicit type name
Prevent duplicated key while creating reverse mapping
* Include packets ID in packet palette
Add packet palette helper class
* Remove packet ID dumper methods
As packets ID are included in source code now
2020-08-26 19:19:59 +02:00