Skip to main content

UpdateVoxelInput

Payload for updateVoxel: records (upserts) a single voxel edit in the voxel_updates log for one chunk.

input UpdateVoxelInput {
appId: BigInt!
coordinates: ChunkCoordinatesInput!
location: VoxelCoordinatesInput!
voxelType: Float!
state: String
}

Fields​

UpdateVoxelInput.appId ● BigInt! non-null scalar​

Id of the app that owns the target chunk (decimal string).

UpdateVoxelInput.coordinates ● ChunkCoordinatesInput! non-null input​

Address of the chunk that contains the voxel to edit.

UpdateVoxelInput.location ● VoxelCoordinatesInput! non-null input​

Local voxel position within the chunk. App-defined: any signed 16-bit integer per axis (-32768 to 32767); apps on the 16x16x16 dense grid use 0-15.

UpdateVoxelInput.voxelType ● Float! non-null scalar​

Voxel type id to write. App-defined: any signed 16-bit integer (-32768 to 32767).

UpdateVoxelInput.state ● String scalar​

Optional BASE64-encoded binary state blob for the voxel; omit for none.

Member Of​

updateVoxel mutation