Stardew Valley

File information

Last updated

Original upload

Created by

aedenthorn

Uploaded by

aedenthorn

Virus scan

Safe to use

Tags for this mod

About this mod

Spawns random treasure chests throughout the Stardew Valley world every set number of days.

Requirements
Permissions and credits
Changelogs
Note: This mod requires the Advanced Loot Framework mod to be installed.

So... I've been obsessed with chests lately! After picking up Genshin Impact, I really appreciated how full of chests that game's world really is. Here's an attempt to bring that sort of lootfest to Stardew Valley!

This mod spawns random chests to all locations (except farmhouses) in the Stardew Valley world, and respawns them on a regular basis (every seven days by default).

Chests should disappear once they are emptied.

Warning: doesn't play nicely with Convenient Chests yet. Should work fine with Automate and Chests Anywhere.

Here is the default config.json file (created in this mod's folder when you first run the game with this mod installed):

{
  "EnableMod": true,
  "AllowIndoorSpawns": true,
  "OnlyAllowLocations": "",
  "DisallowLocations": "",
  "RoundNumberOfChestsUp": false,
  "RespawnInterval": 7,
  "ChestDensity": 0.0001,
  "MaxMult": 100,
  "MaxItems": 5,
  "ItemsBaseMaxValue": 100,
  "MinItemValue": 20,
  "MaxItemValue": -1,
  "CoinBaseMin": 20,
  "CoinBaseMax": 100,
  "RarityChance": 0.2,
  "IncreaseRate": 0.3,
  "ItemListChances": {
    "MeleeWeapon": 100,
    "Shirt": 0,
    "Pants": 0,
    "Hat": 0,
    "Boots": 100,
    "BigCraftable": 100,
    "Ring": 100,
    "Seed": 100,
    "Mineral": 100,
    "Relic": 100,
    "Cooking": 0,
    "Fish": 0,
    "BasicObject": 0
  }
}

OnlyAllowLocations is a comma-separated list of location names to ONLY spawn chests. e.g.: "Forest,Woods"
DisallowLocations is a comma-separated list of location names to NOT spawn chests. e.g.: "Farm,Town"
Use one or the other. No spaces allowed in the list.

RoundNumberOfChestsUp means to round fractions up, so pretty much any location no matter how small will have at least one chest. Otherwise, it will round down and small locations will likely have no chests.

Chest density of 1.0 would mean every free spot on the map would have a chest.

If you have Treasure Chests Extended installed (which I recommend for this mod), the rest of the variables will affect the quality of the chests.

MaxMult
refers to the highest multiplier of the base values allowed for a chest. The actual multiplier will be determined randomly, affected by RarityChance, which affects the spread of values (use decimal values between 0 and 1, lower decimals favour less valuable chests), and IncreaseRate, which determines the curve of value increase based on the multiplier (use decimal values between 0 and 1, lower decimals means diminishing returns on the mult).

CoinBaseMin and CoinBaseMax are the random base range of coins (before the random multiplier is applied).

Rarity determines how likely a chest is to be closer to the max level; 1.0 would mean a linearly random distribution, whereas 0.1 means it is much more likely to get a common chest.

ItemListChances determines the chance that an item type can be placed in the chest once it is selected at random as a potential item. The number is a percent chance, so 0 means that type of item will never be allowed to be in a chest, and 100 means it will always be added.

With Treasure Chests Extended installed, this mod also provides colouring based on chest level - dark gray for common chests, brown for bronze chests, silver for silver chests, gold for gold chests, and purple for the highest end chests.


Other Chest Mods



Technical

Requires SMAPI and Advanced Loot Framework, uses Harmony.

Compatible with Mod Updater for automatic updates.

Code is at https://github.com/aedenthorn/StardewValleyMods.

If you want to complain or ask for help or help me test my mods, you can visit my Discord server.