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 (0-15 per axis; validated to the signed 16-bit range).

UpdateVoxelInput.voxelType ● Float! non-null scalar

Voxel type id to write (0-255).

UpdateVoxelInput.state ● String scalar

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

Member Of

updateVoxel mutation