import type { SymbolMcdocBlockStates } from 'sandstone/arguments/generated/dispatcher.ts' import type { Registry } from 'sandstone/arguments/generated/registry.ts' export type BlockState = (Registry['minecraft:block'] | FullBlockState) export type FullBlockState = NonNullable<({ [S in Extract, string>]?: { id: S, properties?: (S extends undefined ? SymbolMcdocBlockStates<'%none'> : (S extends keyof SymbolMcdocBlockStates ? SymbolMcdocBlockStates[S] : SymbolMcdocBlockStates<'%unknown'>)), } }[Extract])>