Skip to content

Commit

Permalink
Merge pull request #926 from killcerr/patch-1
Browse files Browse the repository at this point in the history
Add level.dat special content
  • Loading branch information
QuazChick authored Oct 17, 2024
2 parents 9ec5f00 + 2c60cbd commit 03adf32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/nbt/nbt-in-depth.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mentions:
- SmokeyStack
- ThomasOrs
- theaddonn
- killcerr
tags:
- expert
description: NBT in depth.
Expand Down Expand Up @@ -91,7 +92,7 @@ There is no certain procedure for writing, because it is the same methods as whe
That's why we recommend first understanding NBT and learning to read it correctly, then it won't be difficult to write NBT.

## Bedrock NBT File header
The NBT bedrock Header is indicated by two 4-byte numbers, the first is always 8, and the second indicates the size of the nbt structure in bytes.
The NBT bedrock Header is indicated by two 4-byte numbers, the first is always 8 (except in `level.dat`, where it indicates the storage version) and the second indicates the size of the nbt structure in bytes.
E.g.
- `08 00 00 00` - `bf 00 00 00`
- < always 8 > < always the size of the NBT structure - exclude headers 8 bytes>
Expand Down

0 comments on commit 03adf32

Please sign in to comment.