Skip to content

Commit 3187c2b

Browse files
authored
Protocol for r/21_u5 NetworkProtocolVersion 766 (#16)
* Protocol for r/21_u5 NetworkProtocolVersion 766 * Fixed README
1 parent ca7b330 commit 3187c2b

File tree

461 files changed

+25046
-22957
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

461 files changed

+25046
-22957
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
We share our Network Protocol with server partners so they can write their own Minecraft servers with their own code. This documentation compiles a series of tree diagrams that define the structure of the packets used by the Protocol, as well as related classes and enums.
44
Protocol is subject to change release over release.
55

6-
Current Release - r/21_u4
6+
Current Release - r/21_u5

changelog_766_11_7_24.md

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
# Minecraft Network Protocol Docs 11/07/2024
2+
For r21_u5, Network Protocol Version 766
3+
4+
5+
## New Packets
6+
7+
CameraAimAssistPresetsPacket:
8+
* Added mCategories (std::vector<SharedTypes::v1_21_50::CameraAimAssistCategoriesDefinition>) [type definition in New Types]
9+
* Added mPresets (std::vector<SharedTypes::v1_21_50::CameraAimAssistPresetDefinition>) [type definition in New Types]
10+
11+
12+
## Packet Changes
13+
14+
CameraAimAssistPacket:
15+
* Added mPresetId (std::string)
16+
17+
ItemStackResponseSlotInfo:
18+
* Added Filtered Custom Name (std::string)
19+
20+
PlayerAuthInputPacket:
21+
* mInputData is now being serialized as std::bitset<static_cast<int>(InputData::INPUT_NUM)> (previous was unsigned varint64)
22+
* Changed mClientTick type from uint64_t to PlayerInputTick
23+
* Added mRawMoveVector (Vec2)
24+
25+
ResourcePacksInfoPacket:
26+
* Added mData.mWorldTemplateIdAndVersion.mId (mce::UUID)
27+
* Added mData.mWorldTemplateIdAndVersion.mVersion.asString() (std::string)
28+
* Changes to PackInfoData:
29+
- Changed pack.mPackIdVersion.mId from std::string to mce::UUID mId
30+
31+
32+
## New Types
33+
34+
SharedTypes::v1_21_50::CameraAimAssistCategoriesDefinition:
35+
* Added mIdentifier (std::string)
36+
* Added mCategories (std::vector<SharedTypes::v1_21_50::CameraAimAssistCategoryDefinition>) [type definition below]
37+
38+
SharedTypes::v1_21_50::CameraAimAssistCategoryDefinition:
39+
* Added mName (std::string)
40+
* Added mPriorities (SharedTypes::v1_21_50::CameraAimAssistCategoryPriorities) [type definition below]
41+
42+
SharedTypes::v1_21_50::CameraAimAssistCategoryPriorities:
43+
* Added mEntities (std::unordered_map<std::string, int32_t>)
44+
* Added mBlocks (std::unordered_map<std::string, int32_t>)
45+
46+
SharedTypes::v1_21_50::CameraAimAssistPresetDefinition:
47+
* Added mIdentifier (std::string)
48+
* Added mCategories (std::string)
49+
* Added mExclusionList (std::vector<std::string>)
50+
* Added mLiquidTargetingList (std::vector<std::string>)
51+
* Added mItemSettings (std::unordered_map<std::string, std::string>)
52+
* Added mDefaultItemSettings (std::optional<std::string>)
53+
* Added mHandSettings (std::optional<std::string>)
54+
55+
SharedTypes::Comprehensive::v1_21_50::CameraPresetAimAssistDefinition:
56+
* Added mPresetId (brstd::optional<std::string>)
57+
* Added mTargetMode (brstd::optional<CameraAimAssist::TargetMode>) [enum definition in New Enums]
58+
* Added mAngle (brstd::optional<Vec2>)
59+
* Added mDistance (brstd::optional<float>)
60+
61+
62+
## Other Changes in Types
63+
64+
CameraPreset:
65+
* Added mTrackingRadius (brstd::optional<float>)
66+
* Added mAimAssist (brstd::optional<SharedTypes::Comprehensive::v1_21_50::CameraPresetAimAssistDefinition>) [type definition in New Types]
67+
68+
69+
## New Enums
70+
71+
CameraAimAssist::TargetMode:
72+
* Added Angle(0)
73+
* Added Distance(1)
74+
75+
76+
## Enum Changes
77+
78+
ActorType:
79+
* Added Creaking(146 | Monster)
80+
81+
BuildPlatform:
82+
* Added GearVR_Deprecated(5)
83+
* Removed GearVR
84+
85+
CameraAimAssistPacket::Action:
86+
* Added _count(2)
87+
88+
CameraAimAssistPacket::TargetMode:
89+
* Added _count(2)
90+
91+
Connection::DisconnectFailReason:
92+
* Added ConnectionLost_DEPRECATED(66)
93+
* Removed ConnectionLost
94+
95+
ContainerID:
96+
* Removed CONTAINER_ID_REGISTRY_INVENTORY
97+
98+
CraftingDataEntryType:
99+
* Added UserDataShapelessRecipe(5)
100+
* Removed ShulkerBoxRecipe
101+
102+
LevelEvent:
103+
* Added ParticleCreakingHeartTrail(9816)
104+
105+
MapItemTrackedActor::Type:
106+
* Removed COUNT
107+
108+
MinecraftPacketIds:
109+
* Added MovementEffect(318)
110+
* Added SetMovementAuthorityMode(319)
111+
* Added CameraAimAssistPresets(320)
112+
* Displaced EndId
113+
114+
ParticleType:
115+
* Added CreakingCrumble(94)
116+
* Added PaleOakLeaves(95)
117+
* Added EyeblossomOpen(96)
118+
* Added EyeblossomClose(97)
119+
* Displaced _count
120+
121+
PlayerActionType:
122+
* Added StartSpinAttack(23)
123+
* Added StartUsingItem(37)
124+
* Changed Count from 37 to 38
125+
* Removed DEPRECATED_StartSpinAttack
126+
127+
PlayerAuthInputPacket::InputData:
128+
* Added StartUsingItem(53)
129+
* Added IsCameraRelativeMovementEnabled(54)
130+
* Added IsRotControlledByMoveDirection(55)
131+
* Added StartSpinAttack(56)
132+
* Added StopSpinAttack(57)
133+
* Added IsHotbarOnlyTouch(58)
134+
* Added JumpReleasedRaw(59)
135+
* Added JumpPressedRaw(60)
136+
* Added JumpCurrentRaw(61)
137+
* Added SneakReleasedRaw(62)
138+
* Added SneakPressedRaw(63)
139+
* Added SneakCurrentRaw(64)
140+
* Displaced INPUT_NUM
141+
142+
ServerAuthMovementMode:
143+
* Added LegacyClientAuthoritativeV1(0)
144+
* Added ClientAuthoritativeV2(1)
145+
* Added ServerAuthoritativeV3(2)
146+
* Removed ClientAuthoritative
147+
* Removed ServerAuthoritative
148+
* Removed ServerAuthoritativeWithRewind
149+
150+
151+
## Misc
152+
153+
Vectors:
154+
* Changed size name from "Array Size" to "List Size"
155+
156+
Conditional statements:
157+
* If - else if and switch statements have more detailed info for each case
158+
159+
Field name changes:
160+
* Multiple instances of changes in field names. No changes in internal logic

dot/ActorLink.dot

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
digraph "ActorLink" {
22
rankdir = LR
3-
110
3+
107
4+
107 -> 108
5+
108 -> 109
6+
107 -> 110
47
110 -> 111
5-
111 -> 112
6-
110 -> 113
7-
113 -> 114
8-
110 -> 115
9-
115 -> 116
10-
110 -> 117
11-
117 -> 118
12-
110 -> 119
13-
119 -> 120
14-
110 -> 121
15-
121 -> 122
8+
107 -> 112
9+
112 -> 113
10+
107 -> 114
11+
114 -> 115
12+
107 -> 116
13+
116 -> 117
14+
107 -> 118
15+
118 -> 119
1616

17-
110 [label="ActorLink",comment="name: \"ActorLink\", typeName: \"\", id: 110, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
18-
111 [label="Actor Unique ID - A",comment="name: \"Actor Unique ID - A\", typeName: \"ActorUniqueID\", id: 111, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
19-
112 [label="ActorUniqueID",comment="name: \"ActorUniqueID\", typeName: \"\", id: 112, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
20-
113 [label="Actor Unique ID - B",comment="name: \"Actor Unique ID - B\", typeName: \"ActorUniqueID\", id: 113, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
21-
114 [label="ActorUniqueID",comment="name: \"ActorUniqueID\", typeName: \"\", id: 114, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
22-
115 [label="Link Type",comment="name: \"Link Type\", typeName: \"\", id: 115, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
23-
116 [label="byte",comment="name: \"byte\", typeName: \"\", id: 116, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
24-
117 [label="Immediate",comment="name: \"Immediate\", typeName: \"\", id: 117, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
25-
118 [label="bool",comment="name: \"bool\", typeName: \"\", id: 118, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
26-
119 [label="Passenger Initiated",comment="name: \"Passenger Initiated\", typeName: \"\", id: 119, branchId: 0, recurseId: -1, attributes: 0, notes: \"Whether the link was changed by the passenger\""];
27-
120 [label="bool",comment="name: \"bool\", typeName: \"\", id: 120, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
28-
121 [label="Vehicle Angular Velocity",comment="name: \"Vehicle Angular Velocity\", typeName: \"\", id: 121, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
29-
122 [label="float",comment="name: \"float\", typeName: \"\", id: 122, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
30-
{ rank = max;112;114;116;118;120;122}
17+
107 [label="ActorLink",comment="name: \"ActorLink\", typeName: \"\", id: 107, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
18+
108 [label="Target A",comment="name: \"Target A\", typeName: \"ActorUniqueID\", id: 108, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
19+
109 [label="ActorUniqueID",comment="name: \"ActorUniqueID\", typeName: \"\", id: 109, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
20+
110 [label="Target B",comment="name: \"Target B\", typeName: \"ActorUniqueID\", id: 110, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
21+
111 [label="ActorUniqueID",comment="name: \"ActorUniqueID\", typeName: \"\", id: 111, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
22+
112 [label="Type",comment="name: \"Type\", typeName: \"\", id: 112, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
23+
113 [label="byte",comment="name: \"byte\", typeName: \"\", id: 113, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
24+
114 [label="Immediate",comment="name: \"Immediate\", typeName: \"\", id: 114, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
25+
115 [label="bool",comment="name: \"bool\", typeName: \"\", id: 115, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
26+
116 [label="Passenger Initiated",comment="name: \"Passenger Initiated\", typeName: \"\", id: 116, branchId: 0, recurseId: -1, attributes: 0, notes: \"Whether the link was changed by the passenger\""];
27+
117 [label="bool",comment="name: \"bool\", typeName: \"\", id: 117, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
28+
118 [label="Vehicle Angular Velocity",comment="name: \"Vehicle Angular Velocity\", typeName: \"\", id: 118, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
29+
119 [label="float",comment="name: \"float\", typeName: \"\", id: 119, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
30+
{ rank = max;109;111;113;115;117;119}
3131

3232
}

dot/AddActorPacket.dot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ rankdir = LR
5858
15 [label="Y Body Rotation",comment="name: \"Y Body Rotation\", typeName: \"\", id: 15, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
5959
16 [label="float",comment="name: \"float\", typeName: \"\", id: 16, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
6060
17 [label="Attributes List",comment="name: \"Attributes List\", typeName: \"\", id: 17, branchId: 0, recurseId: -1, attributes: 8, notes: \"\""];
61-
18 [label="Array Size",comment="name: \"Array Size\", typeName: \"\", id: 18, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
61+
18 [label="List Size",comment="name: \"List Size\", typeName: \"\", id: 18, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
6262
19 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 19, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
6363
20 [label="example element",style=dotted,comment="name: \"example element\", typeName: \"\", id: 20, branchId: 0, recurseId: -1, attributes: 16, notes: \"\""];
6464
21 [label="Attribute Name",comment="name: \"Attribute Name\", typeName: \"\", id: 21, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
@@ -74,7 +74,7 @@ rankdir = LR
7474
31 [label="Synched Properties",comment="name: \"Synched Properties\", typeName: \"PropertySyncData\", id: 31, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
7575
32 [label="PropertySyncData",comment="name: \"PropertySyncData\", typeName: \"\", id: 32, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
7676
33 [label="Actor Links",comment="name: \"Actor Links\", typeName: \"\", id: 33, branchId: 0, recurseId: -1, attributes: 8, notes: \"\""];
77-
34 [label="Array Size",comment="name: \"Array Size\", typeName: \"\", id: 34, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
77+
34 [label="List Size",comment="name: \"List Size\", typeName: \"\", id: 34, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
7878
35 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 35, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
7979
36 [label="example element",style=dotted,comment="name: \"example element\", typeName: \"\", id: 36, branchId: 0, recurseId: -1, attributes: 16, notes: \"\""];
8080
37 [label="Link",comment="name: \"Link\", typeName: \"ActorLink\", id: 37, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];

0 commit comments

Comments
 (0)