Line 444: |
Line 444: |
| | Whether the item's [[Modding:Items#Category|category]] number matches one of the given values. | | | Whether the item's [[Modding:Items#Category|category]] number matches one of the given values. |
| |- | | |- |
− | | <samp>ITEM_HAS_EDIBILITY {{t|target}} {{o|min}} {{o|max}}</samp> | + | | <samp>ITEM_CONTEXT_TAG {{t|target}} {{t|tags}}</samp> |
− | | Whether the item's edibility is between {{o|min}} (default -299) and {{o|max}} (default unlimited) inclusively. A value of -300 is inedible, so <samp>ITEM_HAS_EDIBILITY {{t|target}}</samp> without min/max values checks if the item is edible. | + | | Whether the item has all of the given space-delimited tags. For example, <code>ITEM_CONTEXT_TAG Target bone_item marine_item</code> will only match items with both tags. |
| |- | | |- |
− | | <samp>ITEM_HAS_NUMERIC_ID {{t|target}} {{o|min}} {{o|max}}</samp> | + | | <samp>ITEM_EDIBILITY {{t|target}} {{o|min}} {{o|max}}</samp> |
− | | Whether the item has a numeric [[Modding:Migrate to Stardew Valley 1.6#Custom items|unqualified item ID]] which is between {{o|min}} and {{o|max}} (both defaulting to the lowest and highest possible value). | + | | Whether the item's edibility is between {{o|min}} (default -299) and {{o|max}} (default unlimited) inclusively. A value of -300 is inedible, so <samp>ITEM_EDIBILITY {{t|target}}</samp> without min/max values checks if the item is edible. |
− | |-
| |
− | | <samp>ITEM_HAS_TAG {{t|target}} {{t|tags}}</samp>
| |
− | | Whether the item has all of the given space-delimited tags. For example, <code>ITEM_HAS_TAG Target bone_item marine_item</code> will only match items with both tags.
| |
| |- | | |- |
| | <samp>ITEM_ID {{t|target}} {{t|item ID}}+</samp> | | | <samp>ITEM_ID {{t|target}} {{t|item ID}}+</samp> |
Line 458: |
Line 455: |
| | <samp>ITEM_ID_PREFIX {{t|target}} {{t|prefix}}</samp> | | | <samp>ITEM_ID_PREFIX {{t|target}} {{t|prefix}}</samp> |
| | Whether the item's [[Modding:Migrate to Stardew Valley 1.6#Custom items|qualified or unqualified item ID]] starts with the given prefix. | | | Whether the item's [[Modding:Migrate to Stardew Valley 1.6#Custom items|qualified or unqualified item ID]] starts with the given prefix. |
| + | |- |
| + | | <samp>ITEM_NUMERIC_ID {{t|target}} {{o|min}} {{o|max}}</samp> |
| + | | Whether the item has a numeric [[Modding:Migrate to Stardew Valley 1.6#Custom items|unqualified item ID]] which is between {{o|min}} and {{o|max}} (both defaulting to the lowest and highest possible value). |
| |- | | |- |
| | <samp>ITEM_OBJECT_TYPE {{t|target}} {{t|type}}+</samp> | | | <samp>ITEM_OBJECT_TYPE {{t|target}} {{t|type}}+</samp> |