entityBacked

fun entityBacked(stateSelector: BlockStateSelector = DEFAULT_BLOCK_STATE_SELECTOR, modelSelector: BlockModelSelector = DEFAULT_BLOCK_MODEL_SELECTOR)

Configures the model and hitbox type of this entity-based block model via stateSelector and modelSelector respectively.

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.

Exclusive with stateBacked and modelLess.