Stardew Valley

Config File Examples



Table of Contents

1. The basics
2. Specific spawn areas
3. Multiple areas at the same time
4. Spawning different objects
5. The "ExtraConditions" section



The basics



Enable Forest Farm style forage, respawn for existing hardwood stumps, and Hilltop Farm style ore (if your farm has a quarry):

"ForageSpawnEnabled": true,
"LargeObjectSpawnEnabled": true,
"OreSpawnEnabled": true,


File: https://pastebin.com/4eLBWQQq



Enable ore spawn on farms that don't have a typical quarry area:

"OreSpawnEnabled": true,

"AutoSpawnTerrainTypes": [
"Diggable"
],


File: https://pastebin.com/JNGABzd1



Spawn new hardwood stumps each day (instead of respawning the old ones):

"LargeObjectSpawnEnabled": true,

"FindExistingObjectLocations": false,
"MinimumSpawnsPerDay": 1,
"MaximumSpawnsPerDay": 2,"
AutoSpawnTerrainTypes": [
"Grass",
"Dirt",
"Diggable"
],


File: https://pastebin.com/MtSXQDE7



Specific spawn areas



Spawn ore in a specific section of the farm:

"OreSpawnEnabled": true,

"AutoSpawnTerrainTypes": [],
"IncludeAreas": ["40,40;50,50"],


File: https://pastebin.com/85SeGaY5

Note: Use the whereami console command to find your own coordinates! Any two tiles' coordinates will define a rectangular area where the ore can spawn.



Spawn logs in two specific spots:

"LargeObjectSpawnEnabled": true,

"ObjectTypes": ["Log"],
"FindExistingObjectLocations": false,
"PercentExtraSpawnsPerSkillLevel": 0,
"MinimumSpawnsPerDay": 2,
"MaximumSpawnsPerDay": 2,
"AutoSpawnTerrainTypes": [],
"IncludeAreas": ["40,40;40,40", "50,50;50,50"],


File: https://pastebin.com/Q9d7XbwH

Note: To use multiple sets of coordinates, just separate them with commas. To spawn something on one specific tile, use the same coordinates twice, like the ones above. (If you're spawning a large object, its top left corner will be on the tile you chose.)



Spawn new stumps anywhere on the farm except in front of the farmhouse, shipping bin, and path to town:

"LargeObjectSpawnEnabled": true,

"FindExistingObjectLocations": false,
"MinimumSpawnsPerDay": 1,
"MaximumSpawnsPerDay": 2,
"AutoSpawnTerrainTypes": ["All"],
"IncludeAreas": [],
"ExcludeAreas": ["59,15;79,19"],


File: https://pastebin.com/cWQEm6ff



Multiple areas at the same time



Spawn extra forage on the farm and at the bus stop:

"ForageSpawnEnabled": true,

"Areas": [
{
"SpringItemIndex": null,
"SummerItemIndex": null,
"FallItemIndex": null,
"WinterItemIndex": null,
"MapName": "Farm",
"MinimumSpawnsPerDay": 0,
"MaximumSpawnsPerDay": 3,
"AutoSpawnTerrainTypes": [
"Grass",
"Diggable"
],
"IncludeAreas": [],
"ExcludeAreas": [],
"StrictTileChecking": "High",
"ExtraConditions": {
"Years": [],
"Seasons": [],
"Days": [],
"WeatherYesterday": [],
"WeatherToday": [],
"WeatherTomorrow": [],
"LimitedNumberOfSpawns": null
}
},
{
"SpringItemIndex": null,
"SummerItemIndex": null,
"FallItemIndex": null,
"WinterItemIndex": null,
"MapName": "BusStop",
"MinimumSpawnsPerDay": 0,
"MaximumSpawnsPerDay": 3,
"AutoSpawnTerrainTypes": [
"Grass",
"Diggable"
],
"IncludeAreas": [],
"ExcludeAreas": [],
"StrictTileChecking": "High",
"ExtraConditions": {
"Years": [],
"Seasons": [],
"Days": [],
"WeatherYesterday": [],
"WeatherToday": [],
"WeatherTomorrow": [],
"LimitedNumberOfSpawns": null
}
}
],


File: https://pastebin.com/nD8WKvXF

Note: The main change here is that there are multiple copies of the "Areas" settings: the whole section in {braces} is copy-pasted and separated with a comma. This can be done as many times as you need; it can also target the same map multiple times.



Spawn different forage types in multiple areas of the farm:

"ForageSpawnEnabled": true,

"Areas": [
{
"SpringItemIndex": [
16
],
"SummerItemIndex": [
16
],
"FallItemIndex": [
16
],
"WinterItemIndex": [
16
],
"MapName": "Farm",
"MinimumSpawnsPerDay": 9999,
"MaximumSpawnsPerDay": 9999,
"AutoSpawnTerrainTypes": [
"Grass"
],
"IncludeAreas": [],
"ExcludeAreas": [],
"StrictTileChecking": "High",
"ExtraConditions": {
"Years": [],
"Seasons": [],
"Days": [],
"WeatherYesterday": [],
"WeatherToday": [],
"WeatherTomorrow": [],
"LimitedNumberOfSpawns": null
}
},
{
"SpringItemIndex": [
22
],
"SummerItemIndex": [
22
],
"FallItemIndex": [
22
],
"WinterItemIndex": [
22
],
"MapName": "Farm",
"MinimumSpawnsPerDay": 9999,
"MaximumSpawnsPerDay": 9999,
"AutoSpawnTerrainTypes": [
"Dirt"
],
"IncludeAreas": [],
"ExcludeAreas": [],
"StrictTileChecking": "High",
"ExtraConditions": {
"Years": [],
"Seasons": [],
"Days": [],
"WeatherYesterday": [],
"WeatherToday": [],
"WeatherTomorrow": [],
"LimitedNumberOfSpawns": null
}
},
{
"SpringItemIndex": [
257
],
"SummerItemIndex": [
257
],
"FallItemIndex": [
257
],
"WinterItemIndex": [
257
],
"MapName": "Farm",
"MinimumSpawnsPerDay": 9999,
"MaximumSpawnsPerDay": 9999,
"AutoSpawnTerrainTypes": [
"Wood"
],
"IncludeAreas": [],
"ExcludeAreas": [],
"StrictTileChecking": "High",
"ExtraConditions": {
"Years": [],
"Seasons": [],
"Days": [],
"WeatherYesterday": [],
"WeatherToday": [],
"WeatherTomorrow": [],
"LimitedNumberOfSpawns": null
}
}
],


File: https://pastebin.com/My5UdE4x

Note: As mentioned in the previous example, you can use the same map name multiple times. To spawn different forage, replace the area's "null" ItemIndex settings with a list of item IDs in [brackets] and separated by commas (i.e. the same kind used in the main, "global" ItemIndex lists).

Also, keep in mind that this example will cover most of your farm in forage. It's set to 9999 to make it easier to see.



Spawning different objects



Spawn more of the beach's usual forage items:

"ForageSpawnEnabled": true,

"MapName": "Beach",

"AutoSpawnTerrainTypes": [
"Diggable"
],


"SpringItemIndex": [
372,
718,
393,
719,
723
],
"SummerItemIndex": [
372,
718,
393,
719,
723,
394
],
"FallItemIndex": [
372,
718,
393,
719,
723
],
"WinterItemIndex": [
372,
718,
393,
719,
723,
392
],


File: https://pastebin.com/wPe0gDRL

Note: To spawn different types of forage (or almost any other item), you can look up the item index numbers on this wiki page (click Expand in the section near the top). You can also try this third-party site for a list that's easier to read.

If you want to spawn items from other mods, you'll need to find their IDs with the SMAPI console. Type list_items followed by the name of the object you want to spawn. The number on the right should be its item index.

New: Starting in FTM v1.4, you can also use item names instead of index numbers. For example, if you want to spawn Coral, you can either include 373 or "Coral". Capitalization doesn't matter, but otherwise the name needs to be exact -- if you're not sure, look up the name with the wiki or console.

This method tends to works better with custom forage, because the way index numbers are assigned might change due to various mod behaviors or Stardew updates.



The "ExtraConditions" section



Spawn a meteor on the farm, but only once:

"LargeObjectSpawnEnabled": true,

"ObjectTypes": ["Meteor"],
"FindExistingObjectLocations": false,
"AutoSpawnTerrainTypes": ["All"],
"MinimumSpawnsPerDay": 1,
"MaximumSpawnsPerDay": 1,


"LimitedNumberOfSpawns": 1

File: https://pastebin.com/smKicCvk

Note: The LimitedNumberOfSpawns will count down once per day until it reaches 0, and then things will stop spawning in that area. (Remember, it doesn't limit the number of objects that spawn, just the number of days that spawning happens.)



Spawn forage on the second week of Summer, only after year 1 during good weather:

"ForageSpawnEnabled": true,

"ExtraConditions": {
"Years": ["2+"],
"Seasons": ["Summer"],
"Days": ["8-14"],
"WeatherYesterday": [],
"WeatherToday": ["Sun", "Wind"],
"WeatherTomorrow": [],
"LimitedNumberOfSpawns": null
}


File: https://pastebin.com/TNa9BU9S

Note: Days and years can be single numbers (like "1"), ranges (like "8-14"), or starting points (like "2+"). All the time and weather settings can use multiple settings too, like this: ["8-14", "25"].

Weather settings do not overlap, so "Sun" and "Wind" both need to be included, even if they look really similar in-game; "Rain" and "Storm" are also separate, so remember to include both when necessary.

Article information

Added on

Edited on

Written by

EscaMMC

13 comments

  1. dreamer9861
    dreamer9861
    • member
    • 0 kudos
    For conditions, is there currently a method for different items to have different conditions for it to spawn? 
    1. EscaMMC
      EscaMMC
      • premium
      • 94 kudos
      Not directly, aside from a few skill-related conditions on monsters.

      I'd recommend making multiple spawn areas for the same place, then giving each area different/opposing conditions and different items.
  2. catanana
    catanana
    • member
    • 1 kudos
    Hello. Thank ypu for this amazing mod.
    So, I've been struggling with my config. I seem cannot figure it how to spawn in certain coordinate in a map with certain type of terain. For example, I want forages to spawn only on forest area west side of the farm but only spawn it on grass terrain. How do I config it? 
    1. EscaMMC
      EscaMMC
      • premium
      • 94 kudos
      In that case, I'd suggest using "ExcludeCoordinates" to exclude the east side of your farm. For example, if you want forage to spawn on grass, and only on the first 30 tiles of the west side:

      "IncludeTerrainTypes": ["Grass"],
      "ExcludeTerrainTypes": [],
      "IncludeCoordinates": [],
      "ExcludeCoordinates": ["30,0/999,999"],
    2. catanana
      catanana
      • member
      • 1 kudos
      thank you for quick response! 
  3. redXathena
    redXathena
    • premium
    • 1 kudos
    I'm using a map mod that spawns six tree stumps each day and I would love to change one of those to a large stone. Is that something I could do through this? 
    Thanks!
  4. Lighttheart
    Lighttheart
    • member
    • 1 kudos
    Are the extra conditions listed the only existing conditions? I want to change spawns in the backwoods area based on having a specific amount of friendship points with an NPC. I'm hoping that's possible using FTM, because the only other way I can think of to do this is to use Content Patcher to load a completely new copy of the backwoods as a new, unique map with a new location name and replace the warps on the farm and mountain maps. But that's a whole lot of room for error for such a small thing lol!
    1. EscaMMC
      EscaMMC
      • premium
      • 94 kudos
      Unfortunately, I haven't added any new conditions yet. I've wanted to make it more versatile, but that will probably have to wait until I finish reworking the config file format and some internal code.

      That said, this might make things a bit easier: The IncludeTerrainTypes setting (previously AutoSpawnTerrainTypes) can look for custom values. Here's an example:

      "IncludeTerrainTypes": ["SpecialBackwoodsTile"],
      "ExcludeTerrainTypes": [],
      "IncludeCoordinates": [],
      "ExcludeCoordinates": [],


      With those settings, the spawn area should only create forage on tiles with that "Type" property on the "Back" layer (which is normally set to things like "Grass" or "Dirt"). You could replace the Backwoods with an edited version that has some of those tiles. Combining that with relationship tokens should hopefully get the right results.
    2. Lighttheart
      Lighttheart
      • member
      • 1 kudos
      Oh, that's brilliant and a perfect solution, thanks so much!
  5. Kenji_03
    Kenji_03
    • supporter
    • 0 kudos
    In case anyone wants this mod to ONLY change the Hilltop (Hill top / Hill-top) farm's quarry, I made a pastebin file that will only change that (no foliage, no large stumps)

    File: https://pastebin.com/3v21HvbY
  6. moyaofthemist
    moyaofthemist
    • member
    • 2 kudos
    Is it possible to use this to spawn fruit trees?

    Also, how would I go about setting different forage/items in different areas of the same map? (Beach forage in one corner, regular forage in another, custom items in a third area, fish along the side of a river, etc?)
    1. EscaMMC
      EscaMMC
      • premium
      • 94 kudos
      1) Not currently, no. I'd like to add a tree spawner eventually, but for now the mod's scope is just "customize mechanics from the vanilla farm types".

      2) The examples in the "Multiple areas at the same time" section above should allow you to do that. (I added the second example just now, which is more specifically about this.)

      Using the same MapName multiple times will work, so you can add multiple "Areas" sections for each type of forage you want. To change what spawns in a specific area, replace the "null" ItemIndex settings with the list of forage/items you want there.
    2. moyaofthemist
      moyaofthemist
      • member
      • 2 kudos
      Thank you! This is enormously helpful.