Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add level.dat special content #926

Merged
merged 3 commits into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading