VoxelEngine/doc/specs/fragment_file_spec.md
2024-10-17 05:06:25 +03:00

768 B

Fragment file (.vox)

Current version is 1.

Fragment file is vcbjson file.

JSON schema representation format in Orderly language:

object {
    integer version {1,};
    array {integer;} {1,} size;
    array {string;} block-names;
    array {integer;} {0,65535} voxels;
}

Where:

  • version is fragment file format version.
  • size is fragment size (three positive integers).
  • block-names is array of full block names: pack_id:block_name.
  • voxels: voxels data array: index, state, index, state... where:
    • index is based on block-names array.
    • state - see block state.

block-names must have core:air as the first element.