stateBacked

Configures the backing state types of this block model.

State-backed custom block models are more performant than entity-backed models, but have some limitations. There is also only a certain amount of total block states available that can be used for custom block models.

If no more backing states are available at runtime, the entity-backed display mode will be used instead.


fun stateBacked(priority: Int, category: BackingStateCategory, vararg other: BackingStateCategory)

Configures the backing state types of this block model.

State-backed custom block models are more performant than entity-backed models, but have some limitations. There is also only a certain amount of total block states available that can be used for custom block models.

If no more backing states are available at runtime, the entity-backed display mode will be used instead.

The priority value determines the order in which backing states are distributed to registered blocks, where blocks with a higher priority value will be assigned a backing state first. As a general guideline, the priority should be an estimation of how many blocks of this type will be in a chunk.