Skip to main content

updateChunkLods

Replaces the level-of-detail (LOD) set for a chunk, preserving voxels, per-voxel states, chunk state and owner; returns the updated chunk (or null if it could not be written). WRITES world state. Requires a valid bearer token AND the manage_apps permission on the org that owns input.appId (super admins bypass).

updateChunkLods(
input: UpdateChunkLodsInput!
): Chunk

Arguments​

updateChunkLods.input ● UpdateChunkLodsInput! non-null input​

Type​

Chunk object​

A persisted chunk of an app's voxel world. Holds an optional packed voxel-type grid for 16x16x16 chunks (voxels, one byte per voxel), sparse per-voxel state overrides and recorded edits (voxelStates; voxel positions and types are app-defined signed 16-bit values, so an app may address its chunks however it likes), an optional opaque chunk-level state blob (chunkState), and level-of-detail meshes (lods). Returned by getChunk/getChunksByDistance and written by updateChunk/updateChunkState/updateChunkLods.