entityItemBacked

fun entityItemBacked(stateSelector: BlockStateSelector = DEFAULT_BLOCK_STATE_SELECTOR, itemSelector: ItemDefinitionConfigurator = DEFAULT_CONFIGURE_BLOCK_MODEL_SELECTOR)

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

Entity-backed custom block models based on custom item definitions are less performant than state-backed models, but a lot more flexible. In contrast to entityBacked, models defined via custom item definitions cannot benefit from display entity transformations, as some selection functionality is client-side only. As such, oversized models are not supported.

Feature list:

  • They can take advantage of 1.21.4's item model definition system, which makes it possible to use special model types such as chest or signs.

  • They can display transparent 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.