Skip to content

Commit 11ff951

Browse files
committed
Protocol version 671 for r/20_u8
1 parent 2948866 commit 11ff951

File tree

520 files changed

+3959
-4225
lines changed

Some content is hidden

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

520 files changed

+3959
-4225
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/20_u7
6+
Current Release - r/20_u8

changelog_671_03_25_24.md

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
# Minecraft Network Protocol Docs 03/25/2024
2+
For r20u8, Network Protocol Version 671
3+
4+
## Packet Changes
5+
6+
UpdatePlayerGameTypePacket:
7+
* Added mTick (uint64_t)
8+
9+
ShapedChemistryRecipe:
10+
* Added recipe.assumeSymmetry() (bool)
11+
12+
ShapedRecipe:
13+
* Added recipe.assumeSymmetry() (bool)
14+
15+
LevelSettings:
16+
* Added val.isHardcore() (bool)
17+
18+
ResourcePackStackPacket:
19+
* Added mIncludeEditorPacks (bool)
20+
21+
22+
## Packet Fixes
23+
24+
AnimatePacket:
25+
* Changed branching condition on mData to enum_cast(mAction) & 0x80
26+
27+
AnimatePacket:
28+
* Changed branching condition on mResetPosition to mResetPosition == PlayerPositionModeComponent::PositionMode::Teleport
29+
30+
31+
## Depricated Packets
32+
33+
* FilterTextPacket (FilterTextPacket_DEPRECATED)
34+
35+
36+
## New Enums
37+
38+
CommandRegistry::HardNonTerminal:
39+
* Added Epsilon(NonTerminalBit)
40+
* Added Int(0x100001)
41+
* Added Float(0x100002)
42+
* Added Val(0x100003)
43+
* Added RVal(0x100004)
44+
* Added WildcardInt(0x100005)
45+
* Added Operator(0x100006)
46+
* Added CompareOperator(0x100007)
47+
* Added Selection(0x100008)
48+
* Added StandaloneSelection(0x100009)
49+
* Added WildcardSelection(0x10000a)
50+
* Added NonIdSelector(0x10000b)
51+
* Added ScoresArg(0x10000c)
52+
* Added ScoresArgs(0x10000d)
53+
* Added ScoreSelectParam(0x10000e)
54+
* Added ScoreSelector(0x10000f)
55+
* Added TagSelector(0x100010)
56+
* Added FilePath(0x100011)
57+
* Added FilePathVal(0x100012)
58+
* Added FilePathCont(0x100013)
59+
* Added IntegerRangeVal(0x100014)
60+
* Added IntegerRangePostVal(0x100015)
61+
* Added IntegerRange(0x100016)
62+
* Added FullIntegerRange(0x100017)
63+
* Added RationalRangeVal(0x100018)
64+
* Added RationalRangePostVal(0x100019)
65+
* Added RationalRange(0x10001a)
66+
* Added FullRationalRange(0x10001b)
67+
* Added SelArgs(0x10001c)
68+
* Added Args(0x10001d)
69+
* Added Arg(0x10001e)
70+
* Added MArg(0x10001f)
71+
* Added MValue(0x100020)
72+
* Added NameArg(0x100021)
73+
* Added TypeArg(0x100022)
74+
* Added FamilyArg(0x100023)
75+
* Added HasPermissionArg(0x100024)
76+
* Added HasPermissionArgs(0x100025)
77+
* Added HasPermissionSelector(0x100026)
78+
* Added HasPermissionElement(0x100027)
79+
* Added HasPermissionElements(0x100028)
80+
* Added TagArg(0x100029)
81+
* Added HasItemElement(0x10002a)
82+
* Added HasItemElements(0x10002b)
83+
* Added HasItemArg(0x10002c)
84+
* Added HasItemArgs(0x10002d)
85+
* Added HasItemSelector(0x10002e)
86+
* Added EquipmentSlotEnum(0x10002f)
87+
* Added PropertyValue(0x100030)
88+
* Added HasPropertyParamValue(0x100031)
89+
* Added HasPropertyParamEnumValue(0x100032)
90+
* Added HasPropertyArg(0x100033)
91+
* Added HasPropertyArgs(0x100034)
92+
* Added HasPropertyElement(0x100035)
93+
* Added HasPropertyElements(0x100036)
94+
* Added HasPropertySelector(0x100037)
95+
* Added Id(0x100038)
96+
* Added IdCont(0x100039)
97+
* Added CoordXInt(0x10003a)
98+
* Added CoordYInt(0x10003b)
99+
* Added CoordZInt(0x10003c)
100+
* Added CoordXFloat(0x10003d)
101+
* Added CoordYFloat(0x10003e)
102+
* Added CoordZFloat(0x10003f)
103+
* Added Position(0x100040)
104+
* Added PositionFloat(0x100041)
105+
* Added MessageExp(0x100042)
106+
* Added Message(0x100043)
107+
* Added MessageRoot(0x100044)
108+
* Added PostSelector(0x100045)
109+
* Added RawText(0x100046)
110+
* Added RawTextCont(0x100047)
111+
* Added JsonValue(0x100048)
112+
* Added JsonField(0x100049)
113+
* Added JsonObject(0x10004a)
114+
* Added JsonObjectFields(0x10004b)
115+
* Added JsonObjectCont(0x10004c)
116+
* Added JsonArray(0x10004d)
117+
* Added JsonArrayValues(0x10004e)
118+
* Added JsonArrayCont(0x10004f)
119+
* Added BlockState(0x100050)
120+
* Added BlockStateKey(0x100051)
121+
* Added BlockStateValue(0x100052)
122+
* Added BlockStateValues(0x100053)
123+
* Added BlockStateArray(0x100054)
124+
* Added BlockStateArrayCont(0x100055)
125+
* Added Command(0x100056)
126+
* Added SlashCommand(0x100057)
127+
128+
129+
## Enum Changes
130+
ActorFlags:
131+
* Added DEPRECATED_1(110)
132+
* Added DEPRECATED_2(111)
133+
* Added DEPRECATED_3(112)
134+
* Added BODY_ROTATION_BLOCKED(118)
135+
* Changed Count from 118 to 119
136+
* Removed SCENTING
137+
* Removed RISING
138+
* Removed FEELING_HAPPY
139+
140+
Connection::DisconnectFailReason:
141+
* Added NoVenue(109)
142+
* Added NetherNetSignalingSigninFailed(110)
143+
* Added SessionAccessDenied(111)
144+
* Added ServiceSigninIssue(112)
145+
* Added NetherNetNoSignalingChannel(113)
146+
* Added NetherNetNotLoggedIn(114)
147+
* Added NetherNetClientSignalingError(115)
148+
149+
HudElement:
150+
* Added StatusEffects(11)
151+
* Added ItemText(12)
152+
* Displaced Count
153+
154+
MapDecoration::Type:
155+
* Added TrialChambers(24)
156+
* Displaced Count
157+
158+
MinecraftPacketIds:
159+
* Added FilterTextPacket_DEPRECATED(163)
160+
* Removed FilterTextPacket
161+
162+
ParticleType:
163+
* Added WolfArmorCrack(92)
164+
* Displaced _count

dot/ActorEventPacket.dot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rankdir = LR
1111
0 [label="ActorEventPacket",comment="name: \"ActorEventPacket\", typeName: \"\", id: 0, branchId: 27, recurseId: -1, attributes: 0, notes: \"\""];
1212
1 [label="Target Runtime ID",comment="name: \"Target Runtime ID\", typeName: \"ActorRuntimeID\", id: 1, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
1313
2 [label="ActorRuntimeID",comment="name: \"ActorRuntimeID\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
14-
3 [label="Event ID",comment="name: \"Event ID\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"enumeration: ActorEvent\""];
14+
3 [label="Event ID",comment="name: \"Event ID\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
1515
4 [label="byte",comment="name: \"byte\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
1616
5 [label="Data",comment="name: \"Data\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
1717
6 [label="varint",comment="name: \"varint\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];

dot/ActorLink.dot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ rankdir = LR
1717
112 [label="ActorUniqueID",comment="name: \"ActorUniqueID\", typeName: \"\", id: 112, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
1818
113 [label="Actor Unique ID - B",comment="name: \"Actor Unique ID - B\", typeName: \"ActorUniqueID\", id: 113, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
1919
114 [label="ActorUniqueID",comment="name: \"ActorUniqueID\", typeName: \"\", id: 114, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
20-
115 [label="Link Type",comment="name: \"Link Type\", typeName: \"\", id: 115, branchId: 0, recurseId: -1, attributes: 0, notes: \"enumeration: ActorLinkType\""];
20+
115 [label="Link Type",comment="name: \"Link Type\", typeName: \"\", id: 115, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
2121
116 [label="byte",comment="name: \"byte\", typeName: \"\", id: 116, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
2222
117 [label="Immediate",comment="name: \"Immediate\", typeName: \"\", id: 117, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
2323
118 [label="bool",comment="name: \"bool\", typeName: \"\", id: 118, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];

dot/AddPlayerPacket.dot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ rankdir = LR
6262
16 [label="float",comment="name: \"float\", typeName: \"\", id: 16, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
6363
17 [label="Carried Item",comment="name: \"Carried Item\", typeName: \"NetworkItemStackDescriptor\", id: 17, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
6464
45 [label="NetworkItemStackDescriptor",comment="name: \"NetworkItemStackDescriptor\", typeName: \"\", id: 45, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
65-
46 [label="Player Game Type",comment="name: \"Player Game Type\", typeName: \"\", id: 46, branchId: 0, recurseId: -1, attributes: 0, notes: \"enumeration: GameType\""];
65+
46 [label="Player Game Type",comment="name: \"Player Game Type\", typeName: \"\", id: 46, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
6666
47 [label="varint",comment="name: \"varint\", typeName: \"\", id: 47, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
6767
48 [label="Dependency on 'SynchedActorDataEntityWrapper exist?'",shape=note,comment="name: \"Dependency on 'SynchedActorDataEntityWrapper exist?'\", typeName: \"\", id: 48, branchId: 0, recurseId: -1, attributes: 2, notes: \"\""];
6868
49 [label="if (0)",shape=diamond,comment="name: \"if (0)\", typeName: \"\", id: 49, branchId: 0, recurseId: -1, attributes: 4, notes: \"\""];
@@ -83,7 +83,7 @@ rankdir = LR
8383
121 [label="ActorLink",comment="name: \"ActorLink\", typeName: \"\", id: 121, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
8484
122 [label="Device Id",comment="name: \"Device Id\", typeName: \"\", id: 122, branchId: 0, recurseId: -1, attributes: 0, notes: \"A unique device id obtained from the connection request.\""];
8585
123 [label="string",comment="name: \"string\", typeName: \"\", id: 123, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
86-
124 [label="Build Platform",comment="name: \"Build Platform\", typeName: \"\", id: 124, branchId: 0, recurseId: -1, attributes: 0, notes: \"enumeration: BuildPlatform\""];
86+
124 [label="Build Platform",comment="name: \"Build Platform\", typeName: \"\", id: 124, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
8787
125 [label="int",comment="name: \"int\", typeName: \"\", id: 125, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
8888
{ rank = max;2;4;6;8;10;12;14;16;45;47;56;59;78;104;107;121;123;125}
8989

dot/AgentActionEventPacket.dot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rankdir = LR
1111
0 [label="AgentActionEventPacket",comment="name: \"AgentActionEventPacket\", typeName: \"\", id: 0, branchId: 181, recurseId: -1, attributes: 0, notes: \"\""];
1212
1 [label="Request Id",comment="name: \"Request Id\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
1313
2 [label="string",comment="name: \"string\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
14-
3 [label="Request Id",comment="name: \"Request Id\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"enumeration: AgentActionType\""];
14+
3 [label="Action",comment="name: \"Action\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
1515
4 [label="int",comment="name: \"int\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
1616
5 [label="Response",comment="name: \"Response\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
1717
6 [label="string",comment="name: \"string\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];

dot/AnimateEntityPacket.dot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ rankdir = LR
2727
4 [label="string",comment="name: \"string\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
2828
5 [label="mStopExpression",comment="name: \"mStopExpression\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 0, notes: \"The stop expression, the the condition that determines when to transition to the next state.\""];
2929
6 [label="string",comment="name: \"string\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
30-
7 [label="Stop expression molang version",comment="name: \"Stop expression molang version\", typeName: \"\", id: 7, branchId: 0, recurseId: -1, attributes: 0, notes: \"enumeration: MolangVersion\""];
30+
7 [label="Stop expression molang version",comment="name: \"Stop expression molang version\", typeName: \"\", id: 7, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
3131
8 [label="int",comment="name: \"int\", typeName: \"\", id: 8, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
3232
9 [label="mController",comment="name: \"mController\", typeName: \"\", id: 9, branchId: 0, recurseId: -1, attributes: 0, notes: \"The name of an animation controller\""];
3333
10 [label="string",comment="name: \"string\", typeName: \"\", id: 10, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];

dot/AnimatePacket.dot

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,19 @@ rankdir = LR
1010
6 -> 7
1111
5 -> 8
1212
8 -> 9
13-
5 -> 10
14-
10 -> 11
15-
5 -> 12
16-
12 -> 13
17-
5 -> 14
18-
14 -> 15
19-
5 -> 16
20-
16 -> 17
21-
17 -> 18
22-
5 -> 19
23-
19 -> 20
24-
20 -> 21
13+
9 -> 10
2514

2615
0 [label="AnimatePacket",comment="name: \"AnimatePacket\", typeName: \"\", id: 0, branchId: 44, recurseId: -1, attributes: 0, notes: \"\""];
27-
1 [label="Action",comment="name: \"Action\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"enumeration: AnimatePacket::Action\""];
16+
1 [label="Action",comment="name: \"Action\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
2817
2 [label="varint",comment="name: \"varint\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
2918
3 [label="Target Runtime ID",comment="name: \"Target Runtime ID\", typeName: \"ActorRuntimeID\", id: 3, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
3019
4 [label="ActorRuntimeID",comment="name: \"ActorRuntimeID\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
3120
5 [label="Dependency on 'Action'",shape=note,comment="name: \"Dependency on 'Action'\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 2, notes: \"\""];
3221
6 [label="if (0)",shape=diamond,comment="name: \"if (0)\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 4, notes: \"\""];
3322
7 [label="[No Data]",comment="name: \"[No Data]\", typeName: \"\", id: 7, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
3423
8 [label="if (1)",shape=diamond,comment="name: \"if (1)\", typeName: \"\", id: 8, branchId: 1, recurseId: -1, attributes: 4, notes: \"\""];
35-
9 [label="[No Data]",comment="name: \"[No Data]\", typeName: \"\", id: 9, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
36-
10 [label="if (3)",shape=diamond,comment="name: \"if (3)\", typeName: \"\", id: 10, branchId: 3, recurseId: -1, attributes: 4, notes: \"\""];
37-
11 [label="[No Data]",comment="name: \"[No Data]\", typeName: \"\", id: 11, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
38-
12 [label="if (4)",shape=diamond,comment="name: \"if (4)\", typeName: \"\", id: 12, branchId: 4, recurseId: -1, attributes: 4, notes: \"\""];
39-
13 [label="[No Data]",comment="name: \"[No Data]\", typeName: \"\", id: 13, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
40-
14 [label="if (5)",shape=diamond,comment="name: \"if (5)\", typeName: \"\", id: 14, branchId: 5, recurseId: -1, attributes: 4, notes: \"\""];
41-
15 [label="[No Data]",comment="name: \"[No Data]\", typeName: \"\", id: 15, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
42-
16 [label="if (128)",shape=diamond,comment="name: \"if (128)\", typeName: \"\", id: 16, branchId: 128, recurseId: -1, attributes: 4, notes: \"\""];
43-
17 [label="Rowing Time",comment="name: \"Rowing Time\", typeName: \"\", id: 17, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
44-
18 [label="float",comment="name: \"float\", typeName: \"\", id: 18, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
45-
19 [label="if (129)",shape=diamond,comment="name: \"if (129)\", typeName: \"\", id: 19, branchId: 129, recurseId: -1, attributes: 4, notes: \"\""];
46-
20 [label="Rowing Time",comment="name: \"Rowing Time\", typeName: \"\", id: 20, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
47-
21 [label="float",comment="name: \"float\", typeName: \"\", id: 21, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
48-
{ rank = max;2;4;7;9;11;13;15;18;21}
24+
9 [label="Rowing Time",comment="name: \"Rowing Time\", typeName: \"\", id: 9, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
25+
10 [label="float",comment="name: \"float\", typeName: \"\", id: 10, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
26+
{ rank = max;2;4;7;10}
4927

5028
}

dot/AvailableCommandsPacket.dot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ rankdir = LR
185185
62 [label="string",comment="name: \"string\", typeName: \"\", id: 62, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
186186
63 [label="Flags",comment="name: \"Flags\", typeName: \"\", id: 63, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
187187
64 [label="unsigned short",comment="name: \"unsigned short\", typeName: \"\", id: 64, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
188-
65 [label="Permission Level",comment="name: \"Permission Level\", typeName: \"\", id: 65, branchId: 0, recurseId: -1, attributes: 0, notes: \"enumeration: CommandPermissionLevel\""];
188+
65 [label="Permission Level",comment="name: \"Permission Level\", typeName: \"\", id: 65, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
189189
66 [label="byte",comment="name: \"byte\", typeName: \"\", id: 66, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
190190
67 [label="Alias Enum",comment="name: \"Alias Enum\", typeName: \"\", id: 67, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
191191
68 [label="int",comment="name: \"int\", typeName: \"\", id: 68, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];

0 commit comments

Comments
 (0)