Difference between revisions of "Pre-release protocol"

From wiki.vg
Jump to navigation Jump to search
m (It's pre, not rel :facepalm:)
(28 intermediate revisions by 9 users not shown)
Line 1: Line 1:
This page documents the changes from the [[Protocol|last stable Minecraft release]] (currently [[Protocol version numbers|1.17.1, protocol 756]]) to the current pre-release (currently [[Protocol version numbers|21w44a, protocol {{Snapshot PVN|1073741872}}]]). Note that this page contains bleeding-edge information that may not be completely or correctly documented.
+
This page documents the changes from the [[Protocol|last stable Minecraft release]] (currently [[Protocol version numbers|1.19.2, protocol 760]]) to the current pre-release (currently [[Protocol version numbers|22w16b, protocol {{Snapshot PVN|1073741905}}]]). Note that this page contains bleeding-edge information that may not be completely or correctly documented.
  
 
One who wishes to commandeer the merging of this into [[Protocol]] when an update is made must be sure to respect any changes that may have occurred to the respective packets there.
 
One who wishes to commandeer the merging of this into [[Protocol]] when an update is made must be sure to respect any changes that may have occurred to the respective packets there.
Line 13: Line 13:
 
=== Packets ===
 
=== Packets ===
  
 
+
No changes so far.
{| class="wikitable"
 
! ID
 
! Packet name
 
!colspan="2"| Documentation
 
|-
 
!colspan="4"| Play clientbound
 
{{PacketList|0x0A|Block Entity Data}}
 
{{PacketList|0x22|Chunk Data and Update Light}}
 
{{PacketList|0x26|Join Game}}
 
{{PacketList|0x57|Update Simulation Distance|pre=added}}
 
{{PacketList|{{change|0x57|0x58}}|Set Title SubTitle|pre=unchanged}}
 
{{PacketList|{{change|0x58|0x59}}|Time Update|pre=unchanged}}
 
{{PacketList|{{change|0x59|0x5A}}|Set Title Text|pre=unchanged}}
 
{{PacketList|{{change|0x5A|0x5B}}|Set Title Times|pre=unchanged}}
 
{{PacketList|{{change|0x5B|0x5C}}|Entity Sound Effect|pre=unchanged}}
 
{{PacketList|{{change|0x5C|0x5D}}|Sound Effect|pre=unchanged}}
 
{{PacketList|{{change|0x5D|0x5E}}|Stop Sound|pre=unchanged}}
 
{{PacketList|{{change|0x5E|0x5F}}|Player List Header And Footer|pre=unchanged}}
 
{{PacketList|{{change|0x5F|0x60}}|NBT Query Response|pre=unchanged}}
 
{{PacketList|{{change|0x60|0x61}}|Collect Item|pre=unchanged}}
 
{{PacketList|{{change|0x61|0x62}}|Entity Teleport|pre=unchanged}}
 
{{PacketList|{{change|0x62|0x63}}|Advancements|pre=unchanged}}
 
{{PacketList|{{change|0x63|0x64}}|Entity Properties|pre=unchanged}}
 
{{PacketList|{{change|0x64|0x65}}|Entity Effect|pre=unchanged}}
 
{{PacketList|{{change|0x65|0x66}}|Declare Recipes|pre=unchanged}}
 
{{PacketList|{{change|0x66|0x67}}|Tags|pre=unchanged}}
 
|}
 
  
 
== New/modified data types ==
 
== New/modified data types ==
Line 70: Line 43:
 
=== Clientbound ===
 
=== Clientbound ===
  
==== Block Entity Data ====
+
No changes so far.
 
 
Sets the block entity associated with the block at the given location.
 
 
 
{| class="wikitable"
 
! Packet ID
 
! State
 
! Bound To
 
! Field Name
 
! Field Type
 
! Notes
 
|-
 
|rowspan="4"| 0x0A
 
|rowspan="4"| Play
 
|rowspan="4"| Client
 
| Location
 
| Position
 
|
 
|- {{removed}}
 
| Action
 
| Unsigned Byte
 
| The type of update to perform, see below.
 
|- {{added}}
 
| Type
 
| VarInt
 
| The type of block entity
 
|-
 
| NBT Data
 
| [[NBT|NBT Tag]]
 
| Data to set.  May be a TAG_END (0), in which case the block entity at the given location is removed (though this is not required since the client will remove the block entity automatically on chunk unload or block removal).
 
|}
 
 
 
==== Chunk Data and Update Light ====
 
{{Main|Chunk Format}}
 
{{See also|#Unload Chunk}}
 
 
 
{{Need Info|How do biomes work now?  The biome change happened at the same time as the seed change, but it's not clear how/if biomes could be computed given that it's not the actual seed...  ([https://www.reddit.com/r/Mojira/comments/e5at6i/a_discussion_for_the_changes_to_how_biomes_are/ /r/mojira discussion] which notes that it seems to be some kind of interpolation, and 3D biomes are only used in the nether)}}
 
 
 
The server only sends skylight information for chunk pillars in the {{Minecraft Wiki|Overworld}}, it's up to the client to know in which dimension the player is currently located. You can also infer this information from the primary bitmask and the amount of uncompressed bytes sent.  This packet also sends all block entities in the chunk (though sending them is not required; it is still legal to send them with [[#Update Block Entity|Update Block Entity]] later).
 
 
 
{| class="wikitable"
 
! Packet ID
 
! State
 
! Bound To
 
!colspan="2"| Field Name
 
!colspan="2"| Field Type
 
! Notes
 
|-
 
|rowspan="32"| {{change|0x20|0x22}}
 
|rowspan="32"| Play
 
|rowspan="32"| Client
 
|colspan="2"| Chunk X
 
|colspan="2"| Int
 
| Chunk coordinate (block coordinate divided by 16, rounded down)
 
|-
 
|colspan="2"| Chunk Z
 
|colspan="2"| Int
 
| Chunk coordinate (block coordinate divided by 16, rounded down)
 
|- {{removed}}
 
|colspan="2"| Bit Mask Length
 
|colspan="2"| VarInt
 
| Length of the following array
 
|- {{removed}}
 
|colspan="2"| Primary Bit Mask
 
|colspan="2"| Array of Long
 
| BitSet with bits (world height in blocks / 16) set to 1 for every 16×16×16 chunk section whose data is included in Data. The least significant bit represents the chunk section at the bottom of the chunk column (from the lowest y to 15 blocks above).
 
|-
 
|colspan="2"| Heightmaps
 
|colspan="2"| [[NBT]]
 
| Compound containing one long array named <code>MOTION_BLOCKING</code>, which is a heightmap for the highest solid block at each position in the chunk (as a compacted long array with 256 entries at 9 bits per entry totaling 36 longs). The Notchian server also adds a <code>WORLD_SURFACE</code> long array, the purpose of which is unknown, but it's not required for the chunk to be accepted.
 
|- {{removed}}
 
|colspan="2"| Biomes length
 
|colspan="2"| VarInt
 
| Size of the following array; should always be 1024.  {{change|Not present if full chunk is false.|}}
 
|- {{removed}}
 
|colspan="2"| Biomes
 
|colspan="2"| Array of VarInt
 
| 1024 biome IDs, ordered by x then z then y, in 4&times;4&times;4 blocks.  {{change|Not present if full chunk is false.|}}  See [[Chunk Format#Biomes|Chunk Format § Biomes]].
 
|-
 
|colspan="2"| Size
 
|colspan="2"| VarInt
 
| Size of Data in bytes
 
|-
 
|colspan="2"| Data
 
|colspan="2"| Byte array
 
| See [[Chunk Format#Data structure|data structure]] in Chunk Format
 
|-
 
|colspan="2"| Number of block entities
 
|colspan="2"| VarInt
 
| Number of elements in the following array
 
|- {{removed}}
 
|colspan="2"| Block entities
 
|colspan="2"| Array of [[NBT|NBT Tag]]
 
| All block entities in the chunk.  Use the x, y, and z tags in the NBT to determine their positions.
 
|- {{added}}
 
|rowspan="4" | Block Entity
 
| Packed XZ
 
|rowspan="4" | Array
 
| Byte
 
| The packed section coordinates, calculated from ((blockX & 15) << 4) | (blockZ & 15)
 
|- {{added}}
 
| Y
 
| Short
 
| The height relative to the world
 
|- {{added}}
 
| Type
 
| VarInt
 
| The type of block entity
 
|- {{added}}
 
| Data
 
| [[NBT]]
 
| The block entity's data, without the X, Y, and Z values
 
|- {{added}}
 
|colspan="2"| Trust Edges
 
|colspan="2"| Boolean
 
| If edges should be trusted for light updates.
 
|- {{added}}
 
|colspan="2"| Length 1
 
|colspan="2"| VarInt
 
| Length of the following array
 
|- {{added}}
 
|colspan="2"| Sky Light Mask
 
|colspan="2"| Array of Long
 
| BitSet containing bits for each sections in the world + 2 (lowest bit 16-1 blocks below min world height, highest 1-16 above max world height)
 
|- {{added}}
 
|colspan="2"| Length 2
 
|colspan="2"| VarInt
 
| Length of the following array
 
|- {{added}}
 
|colspan="2"| Block Light Mask
 
|colspan="2"| Array of Long
 
| BitSet containing bits for each sections in the world + 2, same order as sky light
 
|- {{added}}
 
|colspan="2"| Length 3
 
|colspan="2"| VarInt
 
| Length of the following array
 
|- {{added}}
 
|colspan="2"| Empty Sky Light Mask
 
|colspan="2"| Array of Long
 
| BitSet containing a variable amount of bits (see sky/block light) which indicates sections that have 0 for all their sky light values
 
|- {{added}}
 
|colspan="2"| Length 4
 
|colspan="2"| VarInt
 
| Length of the following array
 
|- {{added}}
 
|colspan="2"| Empty Block Light Mask
 
|colspan="2"| Array of Long
 
| BitSet containing a variable amount of bits (see sky/block light) which indicates sections that have 0 for all their block light values
 
|- {{added}}
 
|colspan="2"| Sky Light array count
 
|colspan="2"| VarInt
 
| Number of entries in the following array
 
|- {{added}}
 
|rowspan="2"| Sky Light arrays
 
| Length
 
|rowspan="2"| Array
 
| VarInt
 
| Length of the following array in bytes (always 2048)
 
|- {{added}}
 
| Sky Light array
 
| Array of 2048 bytes
 
| There is 1 array for each bit set to true in the sky light mask, starting with the lowest value.  Half a byte per light value.
 
|- {{added}}
 
|colspan="2"| Block Light array count
 
|colspan="2"| VarInt
 
| Number of entries in the following array
 
|- {{added}}
 
|rowspan="2"| Block Light arrays
 
| Length
 
|rowspan="2"| Array
 
| VarInt
 
| Length of the following array in bytes (always 2048)
 
|- {{added}}
 
| Block Light array
 
| Array of 2048 bytes
 
| There is 1 array for each bit set to true in the block light mask, starting with the lowest value.  Half a byte per light value.
 
|}
 
 
 
Note that the Notchian client requires an [[#Update View Position|Update View Position]] packet when it crosses a chunk border, otherwise it'll only display render distance + 2 chunks around the chunk it spawned in.
 
 
 
The compacted array format has been adjusted so that individual entries no longer span across multiple longs, affecting the main data array and heightmaps.
 
 
 
New format, 5 bits per block, containing the following references to blocks in a palette (not shown): <span style="border: solid 2px hsl(0, 90%, 60%)">1</span><span style="border: solid 2px hsl(30, 90%, 60%)">2</span><span style="border: solid 2px hsl(60, 90%, 60%)">2</span><span style="border: solid 2px hsl(90, 90%, 60%)">3</span><span style="border: solid 2px hsl(120, 90%, 60%)">4</span><span style="border: solid 2px hsl(150, 90%, 60%)">4</span><span style="border: solid 2px hsl(180, 90%, 60%)">5</span><span style="border: solid 2px hsl(210, 90%, 60%)">6</span><span style="border: solid 2px hsl(240, 90%, 60%)">6</span><span style="border: solid 2px hsl(270, 90%, 60%)">4</span><span style="border: solid 2px hsl(300, 90%, 60%)">8</span><span style="border: solid 2px hsl(330, 90%, 60%)">0</span><span style="border: solid 2px hsl(0, 90%, 30%)">7</span><span style="border: solid 2px hsl(30, 90%, 30%)">4</span><span style="border: solid 2px hsl(60, 90%, 30%)">3</span><span style="border: solid 2px hsl(90, 90%, 30%)">13</span><span style="border: solid 2px hsl(120, 90%, 30%)">15</span><span style="border: solid 2px hsl(150, 90%, 30%)">16</span><span style="border: solid 2px hsl(180, 90%, 30%)">9</span><span style="border: solid 2px hsl(210, 90%, 30%)">14</span><span style="border: solid 2px hsl(240, 90%, 30%)">10</span><span style="border: solid 2px hsl(270, 90%, 30%)">12</span><span style="border: solid 2px hsl(300, 90%, 30%)">0</span><span style="border: solid 2px hsl(330, 90%, 30%)">2</span>
 
 
 
<code>0020863148418841</code> <code><span style="outline: dashed 2px black">0000</span><span style="outline: solid 2px hsl(330, 90%, 60%)">00000</span><span style="outline: solid 2px hsl(300, 90%, 60%)">01000</span><span style="outline: solid 2px hsl(270, 90%, 60%)">00100</span><span style="outline: solid 2px hsl(240, 90%, 60%)">00110</span><span style="outline: solid 2px hsl(210, 90%, 60%)">00110</span><span style="outline: solid 2px hsl(180, 90%, 60%)">00101</span><span style="outline: solid 2px hsl(150, 90%, 60%)">00100</span><span style="outline: solid 2px hsl(120, 90%, 60%)">00100</span><span style="outline: solid 2px hsl(90, 90%, 60%)">00011</span><span style="outline: solid 2px hsl(60, 90%, 60%)">00010</span><span style="outline: solid 2px hsl(30, 90%, 60%)">00010</span><span style="outline: solid 2px hsl(0, 90%, 60%)">00001</span></code><br>
 
<code>01018A7260F68C87</code> <code><span style="outline: dashed 2px black">0000</span><span style="outline: solid 2px hsl(330, 90%, 30%)">00010</span><span style="outline: solid 2px hsl(300, 90%, 30%)">00000</span><span style="outline: solid 2px hsl(270, 90%, 30%)">01100</span><span style="outline: solid 2px hsl(240, 90%, 30%)">01010</span><span style="outline: solid 2px hsl(210, 90%, 30%)">01110</span><span style="outline: solid 2px hsl(180, 90%, 30%)">01001</span><span style="outline: solid 2px hsl(150, 90%, 30%)">10000</span><span style="outline: solid 2px hsl(120, 90%, 30%)">01111</span><span style="outline: solid 2px hsl(90, 90%, 30%)">01101</span><span style="outline: solid 2px hsl(60, 90%, 30%)">00011</span><span style="outline: solid 2px hsl(30, 90%, 30%)">00100</span><span style="outline: solid 2px hsl(0, 90%, 30%)">00111</span></code>
 
 
 
==== Join Game ====
 
 
 
See [[Protocol Encryption]] for information on logging in.
 
 
 
{| class="wikitable"
 
! Packet ID
 
! State
 
! Bound To
 
! Field Name
 
! Field Type
 
! Notes
 
|-
 
|rowspan="17"| 0x26
 
|rowspan="17"| Play
 
|rowspan="17"| Client
 
| Entity ID
 
| Int
 
| The player's Entity ID (EID).
 
|-
 
| Is hardcore
 
| Boolean
 
|
 
|-
 
| Gamemode
 
| Unsigned Byte
 
| 0: Survival, 1: Creative, 2: Adventure, 3: Spectator.
 
|-
 
| Previous Gamemode
 
| Byte
 
| 0: survival, 1: creative, 2: adventure, 3: spectator. The hardcore flag is not included. The previous gamemode. Defaults to -1 if there is no previous gamemode. (More information needed)
 
|-
 
| World Count
 
| VarInt
 
| Size of the following array.
 
|-
 
| World Names
 
| Array of Identifier
 
| Identifiers for all worlds on the server.
 
|-
 
| Dimension Codec
 
| [[NBT|NBT Tag Compound]]
 
| The full extent of these is still unknown, but the tag represents a dimension and biome registry. See below for the vanilla default.
 
|-
 
| Dimension
 
| [[NBT|NBT Tag Compound]]
 
| Valid dimensions are defined per dimension registry sent before this. The structure of this tag is a dimension type (see below).
 
|-
 
| World Name
 
| Identifier
 
| Name of the world being spawned into.
 
|-
 
| Hashed seed
 
| Long
 
| First 8 bytes of the SHA-256 hash of the world's seed. Used client side for biome noise
 
|-
 
| Max Players
 
| VarInt
 
| Was once used by the client to draw the player list, but now is ignored.
 
|-
 
| View Distance
 
| VarInt
 
| Render distance (2-32).
 
|- {{added}}
 
| Simulation Distance
 
| VarInt
 
| The distance that the cleint will process specific things, such as entities.
 
|-
 
| Reduced Debug Info
 
| Boolean
 
| If true, a Notchian client shows reduced information on the {{Minecraft Wiki|debug screen}}.  For servers in development, this should almost always be false.
 
|-
 
| Enable respawn screen
 
| Boolean
 
| Set to false when the doImmediateRespawn gamerule is true.
 
|-
 
| Is Debug
 
| Boolean
 
| True if the world is a {{Minecraft Wiki|debug mode}} world; debug mode worlds cannot be modified and have predefined blocks.
 
|-
 
| Is Flat
 
| Boolean
 
| True if the world is a {{Minecraft Wiki|superflat}} world; flat worlds have different void fog and a horizon at y=0 instead of y=63.
 
|}
 
 
 
 
 
The '''Dimension Codec''' NBT Tag Compound ([https://gist.githubusercontent.com/BomBardyGamer/c075a7a34b51f2df9d5aabdd2a762f4f/raw/c7352784dfadbca00d2282aeca04ed80081bfb09/dimension_codec.snbt Default value in SNBT]) includes two registries: "minecraft:dimension_type" and "minecraft:worldgen/biome".
 
 
 
{| class="wikitable"
 
!Name
 
!Type
 
!style="width: 250px;" colspan="2"| Notes
 
|-
 
| minecraft:dimension_type
 
| TAG_Compound
 
| The dimension type registry (see below).
 
|-
 
| minecraft:worldgen/biome
 
| TAG_Compound
 
| The biome registry (see below).
 
|}
 
 
 
Dimension type registry:
 
 
 
{| class="wikitable"
 
!Name
 
!Type
 
!style="width: 250px;" colspan="2"| Notes
 
|-
 
| type
 
| TAG_String
 
| The name of the registry. Always "minecraft:dimension_type".
 
|-
 
| value
 
| TAG_List
 
| List of dimension types registry entries (see below).
 
|}
 
 
 
Dimension type registry entry:
 
 
 
{| class="wikitable"
 
!Name
 
!Type
 
!style="width: 250px;" colspan="2"| Notes
 
|-
 
| name
 
| TAG_String
 
| The name of the dimension type (for example, "minecraft:overworld").
 
|-
 
| id
 
| TAG_Int
 
| The protocol ID of the dimension (matches the index of the element in the registry list).
 
|-
 
| element
 
| TAG_Compound
 
| The dimension type (see below).
 
|}
 
 
 
Dimension type:
 
 
 
{| class="wikitable"
 
! Name
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Values
 
|-
 
| piglin_safe
 
| TAG_Byte
 
|colspan="2"| Whether piglins shake and transform to zombified piglins.
 
| 1: true, 0: false.
 
|-
 
| natural
 
| TAG_Byte
 
|colspan="2"| When false, compasses spin randomly. When true, nether portals can spawn zombified piglins.
 
| 1: true, 0: false.
 
|-
 
| ambient_light
 
| TAG_Float
 
|colspan="2"| How much light the dimension has.
 
| 0.0 to 1.0.
 
|-
 
| fixed_time
 
| Optional TAG_Long
 
|colspan="2"| If set, the time of the day is the specified value.
 
| If set, 0 to 24000.
 
|-
 
| infiniburn
 
| TAG_String
 
|colspan="2"| A resource location defining what block tag to use for infiniburn.
 
| "" or minecraft resource "minecraft:...".
 
|-
 
| respawn_anchor_works
 
| TAG_Byte
 
|colspan="2"| Whether players can charge and use respawn anchors.
 
| 1: true, 0: false.
 
|-
 
| has_skylight
 
| TAG_Byte
 
|colspan="2"| Whether the dimension has skylight access or not.
 
| 1: true, 0: false.
 
|-
 
| bed_works
 
| TAG_Byte
 
|colspan="2"| Whether players can use a bed to sleep.
 
| 1: true, 0: false.
 
|-
 
| effects
 
| TAG_String
 
|colspan="2"| ?
 
| "minecraft:overworld", "minecraft:the_nether", "minecraft:the_end" or something else.
 
|-
 
| has_raids
 
| TAG_Byte
 
|colspan="2"| Whether players with the Bad Omen effect can cause a raid.
 
| 1: true, 0: false.
 
|-
 
| min_y
 
| TAG_Int
 
|colspan="2"| The minimum Y level.
 
|
 
|-
 
| height
 
| TAG_Int
 
|colspan="2"| The maximum height.
 
|
 
|-
 
| logical_height
 
| TAG_Int
 
|colspan="2"| The maximum height to which chorus fruits and nether portals can bring players within this dimension.
 
| 0-256.
 
|-
 
| coordinate_scale
 
| TAG_Float
 
|colspan="2"| The multiplier applied to coordinates when traveling to the dimension.
 
| 0.00001 - 30000000.0
 
|-
 
| ultrawarm
 
| TAG_Byte
 
|colspan="2"| Whether the dimensions behaves like the nether (water evaporates and sponges dry) or not. Also causes lava to spread thinner.
 
| 1: true, 0: false.
 
|-
 
| has_ceiling
 
| TAG_Byte
 
|colspan="2"| Whether the dimension has a bedrock ceiling or not. When true, causes lava to spread faster.
 
| 1: true, 0: false.
 
|}
 
 
 
Biome registry:
 
 
 
{| class="wikitable"
 
!Name
 
!Type
 
!style="width: 250px;" colspan="2"| Notes
 
|-
 
| type
 
| TAG_String
 
| The name of the registry. Always "minecraft:worldgen/biome".
 
|-
 
| value
 
| TAG_List
 
| List of biome registry entries (see below).
 
|}
 
 
 
Biome registry entry:
 
 
 
{| class="wikitable"
 
!Name
 
!Type
 
!style="width: 250px;" colspan="2"| Notes
 
|-
 
| name
 
| TAG_String
 
| The name of the biome (for example, "minecraft:ocean").
 
|-
 
| id
 
| TAG_Int
 
| The protocol ID of the biome (matches the index of the element in the registry list).
 
|-
 
| element
 
| TAG_Compound
 
| The biome properties (see below).
 
|}
 
 
 
Biome properties:
 
 
 
{| class="wikitable"
 
!colspan="2"|Name
 
!colspan="2"|Type
 
!style="width: 250px;" colspan="2"| Meaning
 
!colspan="2"|Values
 
|-
 
|colspan="2"|precipitation
 
|colspan="2"|TAG_String
 
|colspan="2"| The type of precipitation in the biome.
 
|colspan="2"|"rain", "snow", or "none".
 
|-
 
|colspan="2"| depth
 
|colspan="2"| TAG_Float
 
|colspan="2"| The depth factor of the biome.
 
|colspan="2"| The default values vary between 1.5 and -1.8.
 
|-
 
|colspan="2"| temperature
 
|colspan="2"| TAG_Float
 
|colspan="2"| The temperature factor of the biome.
 
|colspan="2"| The default values vary between 2.0 and -0.5.
 
|-
 
|colspan="2"| scale
 
|colspan="2"| TAG_Float
 
|colspan="2"| ?
 
|colspan="2"| The default values vary between 1.225 and 0.0.
 
|-
 
|colspan="2"| downfall
 
|colspan="2"| TAG_Float
 
|colspan="2"| ?
 
|colspan="2"| The default values vary between 1.0 and 0.0.
 
|-
 
|colspan="2"| category
 
|colspan="2"| TAG_String
 
|colspan="2"| The category of the biome.
 
|colspan="2"| Known values are "ocean", "plains", "desert", "forest", "extreme_hills", "taiga", "swamp", "river", "nether", "the_end", "icy", "mushroom", "beach", "jungle", "mesa", "savanna", and "none".
 
|-
 
|colspan="2"| temperature_modifier
 
|colspan="2"| Optional TAG_String
 
|colspan="2"| ?
 
|colspan="2"| The only known value is "frozen".
 
|-
 
|rowspan="11"| effects
 
| sky_color
 
|rowspan="11"| TAG_Compound
 
| TAG_Int
 
|colspan="2"| The color of the sky.
 
| Example: 8364543, which is #7FA1FF in RGB.
 
|-
 
| water_fog_color
 
| TAG_Int
 
|colspan="2"| Possibly the tint color when swimming.
 
| Example: 8364543, which is #7FA1FF in RGB.
 
|-
 
| fog_color
 
| TAG_Int
 
|colspan="2"| Possibly the color of the fog effect when looking past the view distance.
 
| Example: 8364543, which is #7FA1FF in RGB.
 
|-
 
| water_color
 
| TAG_Int
 
|colspan="2"| The tint color of the water blocks.
 
| Example: 8364543, which is #7FA1FF in RGB.
 
|-
 
| foliage_color
 
| Optional TAG_Int
 
|colspan="2"| The tint color of the grass.
 
| Example: 8364543, which is #7FA1FF in RGB.
 
|-
 
| grass_color
 
| Optional TAG_Int
 
| colspan="2"| ?
 
| Example: 8364543, which is #7FA1FF in RGB.
 
|-
 
| grass_color_modifier
 
| Optional TAG_String
 
|colspan="2"| Unknown, likely affects foliage color.
 
| If set, known values are "swamp" and "dark_forest".
 
|-
 
| music
 
| Optional TAG_Compound
 
|colspan="2"| Music properties for the biome.
 
| If present, contains the fields: replace_current_music (TAG_Byte), sound (TAG_String), max_delay (TAG_Int), min_delay (TAG_Int).
 
|-
 
| ambient_sound
 
| Optional TAG_String
 
|colspan="2"| Ambient soundtrack.
 
| If present, the ID of a soundtrack. Example: "minecraft:ambient.basalt_deltas.loop".
 
|-
 
| additions_sound
 
| Optional TAG_Compound
 
|colspan="2"| Additional ambient sound that plays randomly.
 
| If present, contains the fields: sound (TAG_String), tick_chance (TAG_Double).
 
|-
 
| mood_sound
 
| Optional TAG_Compound
 
|colspan="2"| Additional ambient sound that plays at an interval.
 
| If present, contains the fields: sound (TAG_String), tick_delay (TAG_Int), offset (TAG_Double), block_search_extent (TAG_Int).
 
|-
 
|rowspan="2"|particle
 
| probability
 
|rowspan="2"|Optional TAG_Compound
 
| TAG_FLOAT
 
|rowspan="2"| Particles that appear randomly in the biome.
 
| Possibly the probability of spawning the particle.
 
| ?
 
|-
 
| options
 
| TAG_COMPOUND
 
| The properties of the particle to spawn.
 
| Contains the field "type" (TAG_String), which identifies the particle type.
 
|}
 
 
 
==== Update Simulation Distance ====
 
 
 
{| class="wikitable" {{Added}}
 
! Packet ID
 
! State
 
! Bound To
 
! Field Name
 
! Field Type
 
! Notes
 
|-
 
| 0x26
 
| Play
 
| Client
 
| Simulation Distance
 
| VarInt
 
| The distance that the cleint will process specific things, such as entities.
 
|}
 
  
 
=== Serverbound ===
 
=== Serverbound ===

Revision as of 12:46, 30 August 2022

This page documents the changes from the last stable Minecraft release (currently 1.19.2, protocol 760) to the current pre-release (currently 22w16b, protocol Snapshot 81). Note that this page contains bleeding-edge information that may not be completely or correctly documented.

One who wishes to commandeer the merging of this into Protocol when an update is made must be sure to respect any changes that may have occurred to the respective packets there.

Contents

Data types

No changes so far.

Packets

No changes so far.

New/modified data types

No changes so far.

Entity Metadata

No changes so far.

Entity

No changes so far.

Block Actions

No changes so far.

Inventories

No changes so far.

Plugin Channels

No changes so far.

Play

Clientbound

No changes so far.

Serverbound

No changes so far.

Status

Clientbound

No changes so far.

Serverbound

No changes so far.

Login

Clientbound

No changes so far.

Serverbound

No changes so far.