Condition ItemModel

A Condition ItemModel, is a true/false statement to determine what to show the client. Vanilla makes use of this in Bows to show a different one when its being used/pulled and not. There are other ways to use this as it has several properties it can use for this condition. Recommend to check the Minecraft Wikiarrow-up-right for an always up-to-date list.

Below is an example for showing a different Model if an item is broken vs when not;

custom_sword:
  ItemModel:
    type: condition
    property: broken
    on_true:
      type: model
      model: namespace:custom_sword_broken
    on_false:
      type: model
      model: namespace:custom_sword
circle-info

You can also chain these to use different ItemModel-types inside the true/false ItemModels here for very complex items

Last updated