Block: {
    type: "compound";
    value: {
        name: { type: "string"; value: string };
        states: {
            type: "compound";
            value: { [key: string]: { type: any; value: any } };
        };
        version: { type: "int"; value: number };
    };
}

The Block schema.

NBT structure of a block.

Type declaration

  • type: "compound"
  • value: {
        name: { type: "string"; value: string };
        states: {
            type: "compound";
            value: { [key: string]: { type: any; value: any } };
        };
        version: { type: "int"; value: number };
    }
    • name: { type: "string"; value: string }

      The namespaced ID of this block.

    • states: { type: "compound"; value: { [key: string]: { type: any; value: any } } }

      The block states of the block.

    • version: { type: "int"; value: number }

      The data version.

      18163713
      
      18168865