Data3D: {
    type: "compound";
    value: {
        biomes: {
            type: "list";
            value: {
                type: "compound";
                value: {
                    palette: { type: "list"; value: { type: "int"; value: number[] } };
                    values: { type: "list"; value: { type: "int"; value: number[] } };
                }[];
            };
        };
        heightMap: {
            type: "list";
            value: { type: "list"; value: { type: "short"; value: number[] }[] };
        };
    };
}

The Data3D schema.

The NBT structure of the parsed data of the Data3D content type.

Note: This NBT structure is specific to the parser and serializer implemented by this module. This is because the actual data is stored in binary format.

Type declaration

  • type: "compound"
  • value: {
        biomes: {
            type: "list";
            value: {
                type: "compound";
                value: {
                    palette: { type: "list"; value: { type: "int"; value: number[] } };
                    values: { type: "list"; value: { type: "int"; value: number[] } };
                }[];
            };
        };
        heightMap: {
            type: "list";
            value: { type: "list"; value: { type: "short"; value: number[] }[] };
        };
    }
    • biomes: {
          type: "list";
          value: {
              type: "compound";
              value: {
                  palette: { type: "list"; value: { type: "int"; value: number[] } };
                  values: { type: "list"; value: { type: "int"; value: number[] } };
              }[];
          };
      }

      The biome data.

    • heightMap: {
          type: "list";
          value: { type: "list"; value: { type: "short"; value: number[] }[] };
      }

      The height map data.

      In it is stored as a 2D matrix with [x][z] height values.

      16

      16