Guide 1 Docs 2 Reference 3

Field of BlockDef

blockDef.states

How many states it has; block.state counts 1 to this.

blockDef.states: number