Properties

Functions

Link copied to clipboard

Renders a banner model.

Link copied to clipboard

Renders a bed model.

Link copied to clipboard
fun buildModel(selectModel: S.() -> ModelBuilder): ItemModel

Creates a plain model from selectModel. This is equivalent to model { model = selectModel }.

Link copied to clipboard

Renders the selected item stack of the minecraft:bundle_contents component if present, otherwise does nothing.

Link copied to clipboard
fun canvasModel(width: Int, height: Int, offsetX: Double = 0.0, offsetY: Double = 0.0, scale: Double = 1.0): ItemModel

Creates a canvas model, which is an item model with a flat texture where each pixel is individually addressable using the colors part of the minecraft:custom_model_data component, where the pixel at (x, y) is found under the index y * width + x and (0, 0) is the top-left pixel.

Link copied to clipboard

Renders a chest model.

Link copied to clipboard
fun composite(compositeModel: CompositeItemModelBuilder<S>.() -> Unit): ItemModel

Renders multiple models in the same space.

Link copied to clipboard

Chooses a model based on a binary condition of type property.

Link copied to clipboard

Renders a conduit model.

Link copied to clipboard

Renders a decorated pot model.

Link copied to clipboard

Renders nothing.

Link copied to clipboard

Renders a hanging sign model.

Link copied to clipboard

Renders a head model.

Link copied to clipboard
fun model(model: ItemModelBuilder<S>.() -> Unit): ItemModel

Renders a plain model.

Link copied to clipboard
fun numberedModels(range: IntRange, index: Int = 0, selectModel: S.(Int) -> ModelBuilder): ItemModel

Creates a rangeDispatch model with cases for each number in the given range, controlled by the value at index in floats of the minecraft:custom_model_data component.

Link copied to clipboard

Selects a model based on the value of property, by selecting the last entry that is less or equal than a defined value.

Link copied to clipboard
fun rangedModels(count: Int, index: Int = 0, selectModel: S.(Int) -> ModelBuilder): ItemModel

Creates a rangeDispatch model with count cases from 0 to 1, controlled by the value at index in floats of the minecraft:custom_model_data component.

Link copied to clipboard
fun <T> select(property: SelectItemModelProperty<T>, selectModel: SelectItemModelBuilder<T, S>.() -> Unit): ItemModel

Selects a model based on the value of property.

Link copied to clipboard

Renders a shield model.

Link copied to clipboard

Renders a shulker box model.

Link copied to clipboard

Renders a standing sign model.

Link copied to clipboard

Renders a trident model.