Line 101: |
Line 101: |
| | | |
| This consists of a string → model lookup, where... | | This consists of a string → model lookup, where... |
− | * The key is the [[Modding:Modder Guide/Game Fundamentals#Unique string IDs|unique string ID]] of the location (i.e. "internal name"), which will also be used as the location's <samp>Name</samp> (not <samp>DisplayName</samp>) field. (The farm will use <samp>Farm_{{t|type key}}</samp> for a vanilla farm type, or <samp>Farm_{{t|type ID}}</samp> for a custom farm type, or <samp>Farm_Standard</samp> if no type-specific entry was found.) | + | * The key is the [[Modding:Common data field types#Unique string ID|unique string ID]] of the location (i.e. "internal name"), which will also be used as the location's <samp>Name</samp> (not <samp>DisplayName</samp>) field. (The farm will use <samp>Farm_{{t|type key}}</samp> for a vanilla farm type, or <samp>Farm_{{t|type ID}}</samp> for a custom farm type, or <samp>Farm_Standard</samp> if no type-specific entry was found.) |
| * The value is a model with the fields listed below. | | * The value is a model with the fields listed below. |
| | | |
Line 161: |
Line 161: |
| |- | | |- |
| | ''common fields'' | | | ''common fields'' |
− | | See [[Modding:Migrate to Stardew Valley 1.6#Item spawn fields|item spawn fields]] for the generic item fields supported by artifact spot drops. | + | | See [[Modding:Item queries#Item spawn fields|item spawn fields]] for the generic item fields supported by artifact spot drops. |
| | | |
− | If set to an [[Modding:Migrate to Stardew Valley 1.6#Item queries|item query]] which returns multiple items, one of them will be selected at random. | + | If set to an [[Modding:Item queries|item query]] which returns multiple items, one of them will be selected at random. |
| |- | | |- |
| | <samp>Chance</samp> | | | <samp>Chance</samp> |
Line 234: |
Line 234: |
| |- | | |- |
| | ''common fields'' | | | ''common fields'' |
− | | See [[Modding:Migrate to Stardew Valley 1.6#Item spawn fields|item spawn fields]] for the generic item fields supported by forage items. | + | | See [[Modding:Item queries#Item spawn fields|item spawn fields]] for the generic item fields supported by forage items. |
| | | |
− | This must return an <samp>Object</samp> item (or subclass of <samp>Object</samp>). If set to an [[Modding:Migrate to Stardew Valley 1.6#Item queries|item query]] which returns multiple items, one of them will be selected at random. | + | This must return an <samp>Object</samp> item (or subclass of <samp>Object</samp>). If set to an [[Modding:Item queries|item query]] which returns multiple items, one of them will be selected at random. |
| |- | | |- |
| | <samp>Chance</samp> | | | <samp>Chance</samp> |
Line 294: |
Line 294: |
| |- | | |- |
| | <samp>CanBeInherited</samp> | | | <samp>CanBeInherited</samp> |
− | | ''(Optional)'' Whether this fish can be spawned in another location via the <samp>LOCATION_FISH</samp> [[Modding:Migrate to Stardew Valley 1.6#Item queries|item query]]. Default true. | + | | ''(Optional)'' Whether this fish can be spawned in another location via the <samp>LOCATION_FISH</samp> [[Modding:Item queries|item query]]. Default true. |
| |- | | |- |
| | <samp>SetFlagOnCatch</samp> | | | <samp>SetFlagOnCatch</samp> |
Line 324: |
Line 324: |
| |- | | |- |
| | ''common fields'' | | | ''common fields'' |
− | | See [[Modding:Migrate to Stardew Valley 1.6#Item spawn fields|item spawn fields]] for the generic item fields supported by forage items. | + | | See [[Modding:Item queries#Item spawn fields|item spawn fields]] for the generic item fields supported by forage items. |
| | | |
− | This must return an <samp>Object</samp> (<samp>(O)</samp>)-type item. If it uses an [[Modding:Migrate to Stardew Valley 1.6#Item queries|item query]] that returns multiple items, one will be selected at random. If it returns null or a non-<samp>Object</samp> item, the spawn attempt will be skipped (with a logged warning if the item type is invalid). | + | This must return an <samp>Object</samp> (<samp>(O)</samp>)-type item. If it uses an [[Modding:Item queries|item query]] that returns multiple items, one will be selected at random. If it returns null or a non-<samp>Object</samp> item, the spawn attempt will be skipped (with a logged warning if the item type is invalid). |
| |- | | |- |
| | <samp>Chance</samp> | | | <samp>Chance</samp> |
Line 369: |
Line 369: |
| |- | | |- |
| | <samp>Id</samp> | | | <samp>Id</samp> |
− | | ''(Optional)'' A [[Modding:Modder Guide/Game Fundamentals#Unique string IDs|unique string ID]] which identifies this entry within the list. Defaults to the <samp>Track</samp> value. | + | | ''(Optional)'' A [[Modding:Common data field types#Unique string ID|unique string ID]] which identifies this entry within the list. Defaults to the <samp>Track</samp> value. |
| |- | | |- |
| | <samp>Track</samp> | | | <samp>Track</samp> |
Line 408: |
Line 408: |
| |- | | |- |
| | <samp>CustomFields</samp> | | | <samp>CustomFields</samp> |
− | | ''(Optional)'' The [[Modding:Migrate to Stardew Valley 1.6#Custom data fields|custom fields]] for this entry. | + | | ''(Optional)'' The [[Modding:Common data field types#Custom fields|custom fields]] for this entry. |
| |- | | |- |
| | <samp>FormerLocationNames</samp> | | | <samp>FormerLocationNames</samp> |