ItemModelDefinitionBuilder
Properties
Whether a down-and-up animation should be played in first person view when the item is changed (either type, count, components or by swapping the item into the other hand)
Whether the items model is allowed to render bigger than the item slot, or should be clipped to the item slot size. Contrarily to vanilla defaults, this is true
by default.
Functions
Renders a banner model.
Renders a bed model.
Creates a plain model from selectModel. This is equivalent to model { model = selectModel }
.
Renders the selected item stack of the minecraft:bundle_contents
component if present, otherwise does nothing.
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.
Renders a chest model.
Chooses a model based on a binary condition of type property.
Renders a conduit model.
Renders a decorated pot model.
Renders a hanging sign model.
Renders a head model.
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.
Renders a player head model, using the texture from the minecraft:profile
data component on the item stack.
Selects a model based on the value of property, by selecting the last entry that is less or equal than a defined value.
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.
Renders a shield model.
Renders a shulker box model.
Renders a standing sign model.
Renders a trident model.