Change default view distance to 16 and add /viewdistance command

This commit is contained in:
2026-10-02 19:01:08 -03:00
parent a4fec0681f
commit 3202c18ab5
7 changed files with 56 additions and 12 deletions
+1 -1
View File
@@ -299,7 +299,7 @@ How the server sends the world, like Minecraft Java since 1.20.2. The code is in
Light isn't sent.
- **Numeric ids.** Chunks use the server's numeric block ids, and `join.blocks` lists the string id for each, like
Minecraft's registry sync. Clients translate them as a chunk loads.
- **The view.** Players send their view distance with `ready` and `view_distance`. The server uses up to 10 chunks, and
- **The view.** Players send their view distance with `ready` and `view_distance`. The server uses up to 16 chunks, and
sends a round area around the player plus the ring past it, which clients need to mesh and light the edge (Minecraft's
`ChunkTrackingView`). Moving into another chunk sends `set_center_chunk`, and `forget_level_chunk` for each chunk that
left the view.