entityBacked

fun entityBacked(stateSelector: BlockStateSelector = DEFAULT_STATE_SELECTOR)

Configures the hitbox type of this entity-based block model.

Entity-backed custom block models are less performant than state-backed models, but a lot more flexible:

  • They can display transparent- and oversized (larger than 3x3x3) models.

  • There is no limit to the amount of different models.

  • Every vanilla block type can be used as a hitbox (a block inside the display entity). This allows for very customizable colliders.

  • The item display entities can be accessed and updated at runtime.

Note that only tile-entity blocks can use entity-backed models.