item_data_equals

Passes when the held item's custom data value for a given key equals the specified value.

Categories: inventory

Required arguments

Key(s)DescriptionType
keyThe custom item data key to read from the item.STRING
valueThe value that the data key must equal.STRING

Example

conditions:
  - id: item_data_equals
    args:
      key: <value>
      value: <value>