Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Java Edition protocol/Development version: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: updated from Minecraft
Tag: Replaced
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 1: Line 1:
There are currently no pre-release versions available to document on this page. For the latest stable Minecraft release, see the [[Minecraft:Java Edition protocol/Packets|packets]] page. For previous development version pages, see the [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol version numbers|Protocol version numbers]] page.
This page documents the changes from the [[Minecraft:Java Edition protocol/Packets|last stable Minecraft release]] (currently [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol version numbers|26.3, protocol 777]]) to the current snapshot (currently [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol version numbers|26.4-snapshot-8, protocol <abbr title="Snapshot; add 0x40000000 to get true PVN of 1073742170">Snapshot 346</abbr>]]). 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 the [[Minecraft:Java_Edition_protocol|''Java Edition'' protocol]] pages 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 the [[Minecraft:Java_Edition_protocol|''Java Edition'' protocol]] pages when an update is made must be sure to respect any changes that may have occurred to the respective packets there.
Line 9: Line 9:
=== Data types ===
=== Data types ===


No changes so far.
* [[#Chunk Section|Chunk Section]]


=== Packets ===
=== Packets ===


No changes so far.
No changes so far.
== New/modified data types ==
=== Chunk Section ===
==== Chunk Section structure ====
A Chunk Section is defined in terms of other [[Minecraft:Java Edition protocol/Data types|data types]]. A Chunk Section consists of the following fields:
{| class="wikitable"
|-
! Field Name
! Field Type
! Notes
|-
| Block count
| {{Type|Short}}
| Number of non-air blocks present in the chunk section. "Non-air" is defined as any fluid and block other than air, cave air, and void air. The client will keep count of the blocks as they are broken and placed, and, if the block count reaches 0, the whole chunk section is not rendered, even if it still has blocks.
|-
| Fluid count
| {{Type|Short}}
| Number of fluids (waterlogged blocks, and <code>minecraft:water</code> or <code>minecraft:lava</code> with any block state) in this chunk section.
|-
| Block states
| [[Minecraft:Java Edition protocol/Chunk format#Paletted Container structure|Paletted Container]]
| Consists of 4096 entries, representing all the blocks in the chunk section.
|-
| Biomes
| [[Minecraft:Java Edition protocol/Chunk format#Paletted Container structure|Paletted Container]]
| Consists of <del class="tc-no">64 entries, representing 4&times;4&times;4 biome regions</del> <ins class="tc-yes">4096 entries, representing the biome of each block</ins> in the chunk section.
|}
==== Palette formats ====
{| class="wikitable"
|-
! <abbr title="Bits Per Entry">BPE</abbr> (blocks)
! <abbr title="Bits Per Entry">BPE</abbr> (biomes)
! Palette Format
|-
| 0
| 0
| [[Minecraft:Java Edition protocol/Chunk format#Single valued|Single valued]]
|-
| 4-8
| <del class="tc-no">1-3</del> <ins class="tc-yes">1-8</ins>
| [[Minecraft:Java Edition protocol/Chunk format#Indirect|Indirect]]
|-
| 15**
| 7*
| [[Minecraft:Java Edition protocol/Chunk format#Direct|Direct]]
|}
The footnotes of the [[Minecraft:Java Edition protocol/Chunk format#Palette formats|current table]] still apply.


[[Category:Java Edition protocol]]
[[Category:Java Edition protocol]]
{{license wiki.vg}}
{{license wiki.vg}}

Latest revision as of 12:05, 12 November 2026

This page documents the changes from the last stable Minecraft release (currently 26.3, protocol 777) to the current snapshot (currently 26.4-snapshot-8, protocol Snapshot 346). 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 the Java Edition protocol pages when an update is made must be sure to respect any changes that may have occurred to the respective packets there.

Contents

Data types

Packets

No changes so far.

New/modified data types

Chunk Section

Chunk Section structure

A Chunk Section is defined in terms of other data types. A Chunk Section consists of the following fields:

Field Name Field Type Notes
Block count Template:Type Number of non-air blocks present in the chunk section. "Non-air" is defined as any fluid and block other than air, cave air, and void air. The client will keep count of the blocks as they are broken and placed, and, if the block count reaches 0, the whole chunk section is not rendered, even if it still has blocks.
Fluid count Template:Type Number of fluids (waterlogged blocks, and minecraft:water or minecraft:lava with any block state) in this chunk section.
Block states Paletted Container Consists of 4096 entries, representing all the blocks in the chunk section.
Biomes Paletted Container Consists of 64 entries, representing 4×4×4 biome regions 4096 entries, representing the biome of each block in the chunk section.

Palette formats

BPE (blocks) BPE (biomes) Palette Format
0 0 Single valued
4-8 1-3 1-8 Indirect
15** 7* Direct

The footnotes of the current table still apply. Template:License wiki.vg