Types

Link copied to clipboard

Returns true if the item is damageable and has only one use remaining before breaking.

Link copied to clipboard

Returns true if the bundle is "open", i.e. it has a selected item visible in the GUI.

Link copied to clipboard

Returns true if the item is currently on the mouse cursor.

Link copied to clipboard

Returns the value from index in flags of the minecraft:custom_model_data component.

Link copied to clipboard

Returns true if the item is damageable and has any amount of damage.

Link copied to clipboard

Returns true if the player has requested extended details by holding the shift key down. Only works for items displayed in the GUI. Not a keybind, can't be rebound.

Link copied to clipboard

Returns true if the item is a fishing rod that is currently cast.

Link copied to clipboard
class HasComponent(component: Key, ignoreDefault: Boolean = false) : ConditionItemModelProperty

Returns true if a dataComponent identified by component is present on the item. To interpret default components as "no component", set ignoreDefault to true.

Link copied to clipboard

Returns true if the player is currently holding the keybind keybind.

Link copied to clipboard

Returns true if the item is selected in the hotbar.

Link copied to clipboard

Returns true if the player is currently using this item.

Link copied to clipboard