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

The Data2D schema.

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

      The biome data.

      In it is stored as a 2D matrix with [x][z] biome numeric ID 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