⚖️ Condition
https://minecraft.wiki/w/Items_model_definition#condition
In this configuration, when you use "minecraft:condition," you need to specify the condition type, which is the "property" mentioned below. "on-false" and "on-true" respectively represent displaying different models under different conditions.
Available Properties
minecraft:broken
Return
true
if the item is damageable and has only one use remaining before breaking.
minecraft:carried
Return
true
if item is carried between slots in GUI.
minecraft:damaged
Return
true
if the item is damageable and has been used at least once.
minecraft:extended_view
Return
true
if player has requested extended details by holding shift key down. Only works when item is displayed in UI. Note: not a keybind, can't be rebound.
minecraft:fishing_rod/cast
Return
true
if there is a fishing bobber attached to currently used fishing rod.
minecraft:selected
Return
true
if item is selected on a hotbar.
minecraft:using_item
Return
true
if player is currently using this item.
minecraft:view_entity
When not spectating, return
true
if context entity is the local player entity, i.e. the one controlled by client.When spectating, return
true
if context entity is the spectated entity.If context entity is not present, will return
false
.
minecraft:bundle/has_selected_item
Return
true
if bundle is "open", i.e. it has selected item visible in GUI.
minecraft:component (Not Implemented)
Uses component item sub predicates to match item components.
minecraft:has_component
Return
true
if the given component is present on the item.
minecraft:keybind_down
Return
true
if keybind is currently active.
minecraft:custom_model_data
Return value from
flags
list inminecraft:custom_model_data
component.
Last updated