-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protocol for r/21 NetworkProtocolVersion 685
- Loading branch information
Yash Shroff
authored and
Yash Shroff
committed
May 7, 2024
1 parent
ebba866
commit 11e5e7d
Showing
40 changed files
with
2,969 additions
and
2,271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
# Minecraft Network Protocol Docs 04/29/2024 | ||
For r21, Network Protocol Version 685 | ||
|
||
## New Packets | ||
|
||
AwardAchievementPacket | ||
* Added mAchievementID (int) | ||
|
||
|
||
## Packet Changes | ||
|
||
CodeBuilderSourcePacket: | ||
* Removed mValue | ||
* Added mCodeStatus (enum CodeBuilderExecutionState::CodeStatus) [Details below] | ||
|
||
LegacyTelemetryEventPacket: | ||
* Added new branch case for enum conditional "Event Type": Type::ItemUsedEvent and subsequent data: | ||
- Added mEventData.ItemUsedEvent.mItemId (short) | ||
- Added mEventData.ItemUsedEvent.mItemAux (int) | ||
- Added mEventData.ItemUsedEvent.mUseMethod (int) | ||
- Added mEventData.ItemUsedEvent.mCount (int) | ||
|
||
ShapedRecipe: | ||
* Added recipe.getUnlockingRequirement() (RecipeUnlockingRequirement) [Details below] | ||
|
||
ShapelessRecipe: | ||
* Added recipe.getUnlockingRequirement() (RecipeUnlockingRequirement) [Details below] | ||
|
||
UpdateSubChunkBlocksPacket | ||
* Changed mBlocksChanged.mStandards from NetworkBlockInfo::NetworkBlockInfo to struct UpdateSubChunkNetworkBlockInfo [Member variables are the same] | ||
* Changed mBlocksChanged.mExtras from NetworkBlockInfo::NetworkBlockInfo to struct UpdateSubChunkNetworkBlockInfo [Member variables are the same] | ||
|
||
|
||
## Packet Fixes | ||
|
||
SetScorePacket: | ||
* Moved data.mIdentityType outside of conditional "Is Change Type" | ||
|
||
|
||
## Deprecated Packets | ||
|
||
TickSyncPacket (TickSync_deprecated) | ||
|
||
|
||
## New Files | ||
|
||
RecipeUnlockingRequirement | ||
* Added requirement.getUnlockingContext() (enum RecipeUnlockingRequirement::UnlockingContext) [Details below] | ||
* Added branching condition: requirement.getUnlockingContext() == RecipeUnlockingRequirement::UnlockingContext::None | ||
- If true: | ||
- Added vector list requirement.getUnlockingIngredients() (std::vector<RecipeIngredient>) | ||
- Added ingredient (RecipeIngredient) | ||
|
||
|
||
## New Enums | ||
|
||
CodeBuilderExecutionState::CodeStatus: | ||
* Added None(0) | ||
* Added NotStarted(1) | ||
* Added InProgress(2) | ||
* Added Paused(3) | ||
* Added Error(4) | ||
* Added Succeeded(5) | ||
|
||
RecipeUnlockingRequirement::UnlockingContext: | ||
* Added None(0) | ||
* Added AlwaysUnlocked(1) | ||
* Added PlayerInWater(2) | ||
* Added PlayerHasManyItems(3) | ||
|
||
|
||
## Enum Changes | ||
|
||
ActorDataIDs: | ||
* Added RESERVED_009(9) | ||
* Added DATA_SPAWN_TIME_deprecated(96) | ||
* Added VISIBLE_MOB_EFFECTS(131) | ||
* Changed Count from 131 to 132 | ||
* Removed EFFECT_AMBIENCE | ||
* Removed DATA_SPAWN_TIME | ||
|
||
ActorType: | ||
* Displaced Bogged | ||
* Added OminousItemSpawner(145) | ||
|
||
CommandRegistry::HardNonTerminal: | ||
* Added CodeBuilderArg(0x100058) | ||
* Added CodeBuilderArgs(0x100059) | ||
* Added CodeBuilderSelectParam(0x10005a) | ||
* Added CodeBuilderSelector(0x10005b) | ||
|
||
Connection::DisconnectFailReason: | ||
* Added RealmsSessionNotFound_DEPRECATED(89) | ||
* Removed RealmsSessionNotFound | ||
|
||
Enchant::Type: | ||
* Added WindBurst(38) | ||
* Added Density(39) | ||
* Added Breach(40) | ||
* Displaced NumEnchantments | ||
* Displaced InvalidEnchantment | ||
|
||
ItemUseMethod: | ||
* Added OpenedVault(16) | ||
* Displaced _Count | ||
|
||
LegacyTelemetryEventPacket::Type: | ||
* Added ItemUsedEvent(31) | ||
|
||
LevelEvent: | ||
* Added 9800(3619) | ||
* Added ParticlesTrialSpawnerDetectionCharged(3615) | ||
* Added ParticlesTrialSpawnerBecomeCharged(3616) | ||
* Changed AllPlayersSleeping from 3615 to 3617 | ||
* Changed deprecated from 3616 to 3618 | ||
* Added AnimationSpawnCobweb(9814) | ||
* Added ParticleSmashAttackGroundDust(9815) | ||
|
||
MinecraftPacketIds: | ||
* Added TickSync_deprecated(23) | ||
* Added AwardAchievementPacket(309) | ||
* Changed EndId from 309 to 310 | ||
* Removed TickSync | ||
|
||
ParticleType: | ||
* Added OminousItemSpawner(93) | ||
* Displaced _count | ||
|
||
PlayerAuthInputPacket::InputData: | ||
* Added NorthJump_DEPRECATED(2) | ||
* Added BlockBreakingDelayEnabled(48) | ||
* Changed INPUT_NUM from 48 to 49 | ||
* Removed NorthJump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
digraph "AwardAchievementPacket" { | ||
rankdir = LR | ||
0 | ||
0 -> 1 | ||
1 -> 2 | ||
|
||
0 [label="AwardAchievementPacket",comment="name: \"AwardAchievementPacket\", typeName: \"\", id: 0, branchId: 309, recurseId: -1, attributes: 0, notes: \"\""]; | ||
1 [label="AchievementID",comment="name: \"AchievementID\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"Achievement ID\""]; | ||
2 [label="int",comment="name: \"int\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
{ rank = max;2} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
digraph "ItemData" { | ||
rankdir = LR | ||
174 | ||
174 -> 175 | ||
175 -> 176 | ||
174 -> 177 | ||
177 -> 178 | ||
174 -> 179 | ||
179 -> 180 | ||
180 | ||
180 -> 181 | ||
181 -> 182 | ||
180 -> 183 | ||
183 -> 184 | ||
180 -> 185 | ||
185 -> 186 | ||
|
||
174 [label="ItemData",comment="name: \"ItemData\", typeName: \"\", id: 174, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
175 [label="Item Name",comment="name: \"Item Name\", typeName: \"\", id: 175, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
176 [label="string",comment="name: \"string\", typeName: \"\", id: 176, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
177 [label="Item Id",comment="name: \"Item Id\", typeName: \"\", id: 177, branchId: 0, recurseId: -1, attributes: 0, notes: \"Block id's < 256 (can be negative); Item id's > 257\""]; | ||
178 [label="short",comment="name: \"short\", typeName: \"\", id: 178, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
179 [label="Is Component Based",comment="name: \"Is Component Based\", typeName: \"\", id: 179, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
180 [label="bool",comment="name: \"bool\", typeName: \"\", id: 180, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
{ rank = max;176;178;180} | ||
180 [label="ItemData",comment="name: \"ItemData\", typeName: \"\", id: 180, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
181 [label="Item Name",comment="name: \"Item Name\", typeName: \"\", id: 181, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
182 [label="string",comment="name: \"string\", typeName: \"\", id: 182, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
183 [label="Item Id",comment="name: \"Item Id\", typeName: \"\", id: 183, branchId: 0, recurseId: -1, attributes: 0, notes: \"Block id's < 256 (can be negative); Item id's > 257\""]; | ||
184 [label="short",comment="name: \"short\", typeName: \"\", id: 184, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
185 [label="Is Component Based",comment="name: \"Is Component Based\", typeName: \"\", id: 185, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
186 [label="bool",comment="name: \"bool\", typeName: \"\", id: 186, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
{ rank = max;182;184;186} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
digraph "NetworkPermissions" { | ||
rankdir = LR | ||
199 | ||
199 -> 200 | ||
200 -> 201 | ||
205 | ||
205 -> 206 | ||
206 -> 207 | ||
|
||
199 [label="NetworkPermissions",comment="name: \"NetworkPermissions\", typeName: \"\", id: 199, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
200 [label="serverAuthSoundEnabled",comment="name: \"serverAuthSoundEnabled\", typeName: \"\", id: 200, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
201 [label="bool",comment="name: \"bool\", typeName: \"\", id: 201, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
{ rank = max;201} | ||
205 [label="NetworkPermissions",comment="name: \"NetworkPermissions\", typeName: \"\", id: 205, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
206 [label="serverAuthSoundEnabled",comment="name: \"serverAuthSoundEnabled\", typeName: \"\", id: 206, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
207 [label="bool",comment="name: \"bool\", typeName: \"\", id: 207, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
{ rank = max;207} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
digraph "RecipeUnlockingRequirement" { | ||
rankdir = LR | ||
54 | ||
54 -> 55 | ||
55 -> 56 | ||
54 -> 57 | ||
57 -> 58 | ||
58 -> 59 | ||
57 -> 60 | ||
60 -> 61 | ||
61 -> 62 | ||
62 -> 63 | ||
61 -> 64 | ||
64 -> 65 | ||
65 -> 66 | ||
|
||
54 [label="RecipeUnlockingRequirement",comment="name: \"RecipeUnlockingRequirement\", typeName: \"\", id: 54, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
55 [label="Unlocking Context",comment="name: \"Unlocking Context\", typeName: \"\", id: 55, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
56 [label="byte",comment="name: \"byte\", typeName: \"\", id: 56, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
57 [label="Dependency on 'Unlocking context is None?'",shape=note,comment="name: \"Dependency on 'Unlocking context is None?'\", typeName: \"\", id: 57, branchId: 0, recurseId: -1, attributes: 2, notes: \"\""]; | ||
58 [label="if (0)",shape=diamond,comment="name: \"if (0)\", typeName: \"\", id: 58, branchId: 0, recurseId: -1, attributes: 4, notes: \"\""]; | ||
59 [label="[No Data]",comment="name: \"[No Data]\", typeName: \"\", id: 59, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
60 [label="if (1)",shape=diamond,comment="name: \"if (1)\", typeName: \"\", id: 60, branchId: 1, recurseId: -1, attributes: 4, notes: \"\""]; | ||
61 [label="Unlocking Ingredients",comment="name: \"Unlocking Ingredients\", typeName: \"\", id: 61, branchId: 0, recurseId: -1, attributes: 8, notes: \"\""]; | ||
62 [label="Array Size",comment="name: \"Array Size\", typeName: \"\", id: 62, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
63 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 63, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
64 [label="example element",style=dotted,comment="name: \"example element\", typeName: \"\", id: 64, branchId: 0, recurseId: -1, attributes: 16, notes: \"\""]; | ||
65 [label="Ingredient",comment="name: \"Ingredient\", typeName: \"RecipeIngredient\", id: 65, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""]; | ||
66 [label="RecipeIngredient",comment="name: \"RecipeIngredient\", typeName: \"\", id: 66, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
{ rank = max;56;59;63;66} | ||
|
||
} |
Oops, something went wrong.