Composite(models, transformation?) modelslist of ItemModeltransformationoptionalTransformation
Helpers that build a minecraft:item_model object, one for each of its types. Where a field takes one, write the helper's call; its
name is the type it makes. Click a type to see what it accepts.
Composite(models, transformation?) modelslist of ItemModel transformationoptionalTransformation Condition(property, on_true, on_false, transformation?) propertyConditionalPropertyType on_trueItemModel on_falseItemModel transformationoptionalTransformation Empty() Model(model, tints?, transformation?) modelModelRef tintsoptionallist of ModelTint transformationoptionalTransformation RangeDispatch(property, entries, scale?, fallback?, transformation?) propertyNumericPropertyType entrieslist of { threshold: number, model: ItemModel } List of ranges. Will select last entry with threshold less or equal to value. Order does not matter, list will be sorted by threshold in ascending order.
scaleoptionalnumber Factor to multiply the property value with. Defaults to 1.
fallbackoptionalItemModel Item model to render if no entries were less or equal to the value.
transformationoptionalTransformation Select(property, fallback?, transformation?) propertySelectPropertyType fallbackoptionalItemModel Item model to render if none of the cases matched the value.
transformationoptionalTransformation Special(model, base, transformation?) modelspecial_item_model Renders a special hardcoded model.
baseModelRef Base model, providing transformations, particle texture and GUI light.
transformationoptionalTransformation