Data2DLegacy: {
    type: "compound";
    value: {
        biomeData: {
            type: "list";
            value: {
                type: "list";
                value: {
                    type: "list";
                    value: { type: "byte"; value: [number, number, number, number] }[];
                }[];
            };
        };
        heightMap: {
            type: "list";
            value: { type: "list"; value: { type: "short"; value: number[] }[] };
        };
    };
}

The Data2DLegacy schema.

The NBT structure of the parsed data of the Data2DLegacy 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: {
        biomeData: {
            type: "list";
            value: {
                type: "list";
                value: {
                    type: "list";
                    value: { type: "byte"; value: [number, number, number, number] }[];
                }[];
            };
        };
        heightMap: {
            type: "list";
            value: { type: "list"; value: { type: "short"; value: number[] }[] };
        };
    }
    • biomeData: {
          type: "list";
          value: {
              type: "list";
              value: {
                  type: "list";
                  value: { type: "byte"; value: [number, number, number, number] }[];
              }[];
          };
      }

      The biome data.

      In it is stored as a 2D matrix with [x][z] tuples of a biome numeric ID followed by red, green and blue values.

      16

      16

    • 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