Skip to content

Instantly share code, notes, and snippets.

@wgaylord
Created November 5, 2023 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wgaylord/e1196e832bf5e385b00c85c767de0d40 to your computer and use it in GitHub Desktop.
Save wgaylord/e1196e832bf5e385b00c85c767de0d40 to your computer and use it in GitHub Desktop.
1.20.2 packet changes
Play - toClient
New Packets
chunk_batch_finished - Marks the end of a chunk batch and
says how many chunks were in the batch
According to wiki.vg this is used with chunk_batch_start
and also chunk_batch_received to estimate the best chunks
per tick to send for your network speed.
chunk_batch_start - Marks the start of a chunk batch.
Client should store the time it recieves this somewhere to use in the calculation
of how many chunks to send per tick.
ping_response - Like the old Pong packet but using a long.
start_configutation - switchs connection state back to configuration mode
Changed Packets
login - The one in the play state
Removed Registry Codec - this is now sent during the configuration stage
Added a doLimitedCrafting field
Changed the order of the following fields
worldType
worldName
hashedSeed
gameMode
previousGameMode
Respawn
Changed the order of the fields:
dataKept is now in a different location in the packet.
update Advancements
Criteria was removed as a concept.
Removed Packets
Feature Flags - This was removed from the play state, there exists
the same functionality in the new configuration state
Play - toServer
New Packets
chunk_batch_received
Sent from the client after it gets chunk_batch_finished packet.
desired chunks per is sent to the server.
configuration_acknowledged
Sent to the server in response to a start_configutation packet
ping_request - Like the old Ping packet but using a long.
Login - toCLient
Changes
login_success - now switches state to the configuration state instead of to the play state
Login - toServer
New Packets
login_acknowledged - Sent in response to the login success sent by the server (I am assuming before the state change to configuration)
Changed Packets
login_start
playerUUID is no longer optional
Configuration State - to Client
All packets are new
Best to read the wiki.vg information on these.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment