Skip to content
mc-protocol
Esc
↑↓navigate↵open⌘Jpreview
On this page

Set Chunk Cache Radius

Play 0x5F, server → client.

play · 0x5F · clientbound (server → client)

Sets the render distance the client should use for chunk loading. The server sends it on join and when the view distance changes. The client resizes its chunk cache to match.

Sent by the server, read by the client. Listen for it with client.on("SetChunkCacheRadius", (data) => …) on the receiving side.

Fields

Field Type Notes
viewDistance VarInt

Send it

await client.sendPacket("SetChunkCacheRadius", {
  viewDistance: /* VarInt */,
});

Field aliases listed under Notes are accepted as alternative keys when writing.

Source: src/Core/Versions/776/Packets/play/clientbound/SetChunkCacheRadius.ts

Was this page helpful?