Stardew Valley
0 of 0

File information

Last updated

Original upload

Created by

chiccen

Uploaded by

chiccenSDV

Virus scan

Safe to use

About this mod

Just some minor tweaks to garbage cans in Pelican Town to increase likelihood of item drops, give NPC birthday gifts on their birthday, or change garbage can loot tables!

Requirements
Permissions and credits
Garbage Can Tweaks is an original mod inspired by Better Garbage Cans by AAir. Although that mod inspired this one, this mod was built from the ground up as a completely original work and was never intended to be a replacement. Thus, some features you may have liked from that mod will not be present in this one. If you encounter issues, disable the mod and please post a bug report. If you'd like to contribute, the source code is available on my Github.

DESCRIPTION
===========

Garbage Can Tweaks lets you tweak Garbage Cans in Pelican Town to drop loved gifts for NPCs at the respective houses' garbage cans on their birthday. NPCs without garbage cans will have their items spawned at the Mayor's. It also allows players to upload custom loot drop tables for custom loot at each trash can.

Important Configuration notes:
LootChance is a multiplier, not a base chance (hence it isn't on a 0 to 1 scale like most chance config options). When tested at 3x with the default loot table, the output was pretty incredible. So honestly, I wouldn't go much higher than that unless you really wanna get a lot of use out of garbage cans.

Loot Tables are read from the "assets" folder at Stardew Valley/Mods/GarbageCanTweaks/assets/. I am working on support to scan the mod folder, to allow a sort of "content patcher" style of custom garbage can data. However, that isn't slotted yet and I will be sure to put out some notice if that capability does come out. To create your own garbage data pack, refer to the the "default.json" file within that folder. Default is all the original base values and conditions from the base vanilla game. Be extremely attentive if modifying these data sets, as you can very very very easily break your game by mistake. I am working on a guide to safely modify/create custom garbage data files, but in the meantime I would recommend just sticking with Default. A couple more packs do come included, but these are mostly for demonstration, or for bug testing. So use those at your own risk.

tweaked.json -- adds a secret birthday gift for me at my favorite NPC's house, and a chance to get bombs from Kent's trash can when you've reached floor 100 in the mines. This pack is for demonstration.
debug.json -- i honestly can't even remember, but I think the blacksmith trash data was swapped for prismatic shard, iridium bar, and something else. This pack was just used to debug.

The default configuration is:
EnableMod = true
LootTable = "default"
EnableBirthday = true
BirthdayChance = 0.75 //(75%)
LootChance = 1f //(1.0x)
Debug = false

You can edit the config in Generic Mod Config Menu or by editing the mod's config.json file after starting the game once.

Technical

Requires SMAPI, uses Harmony.

Implements a Generic Mod Config Menu interface to change config settings in-game.

Code is at https://github.com/chiccenFL/StardewValleyMods/tree/main/GarbageCanTweaks

If you want to complain or ask for help or help me test my mods, message me on Discord (@chiccen). I am also reachable on the Official Stardew Valley Discord with the same username.