Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features so long as you credit me as the original creator
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission or crediting me
Asset use permission in mods/files that are being soldYou are allowed to use the assets in this file in mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
All credit for Content Patcher goes to Pathoschild. This mod merely adds some small functionality through Content Patcher's publicly provided API.
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 0.5.7
Fixed issue with dinosaur eggs laid stat.
Version 0.5.6
Fixed issue with felling trees.
Fixed issue with eating food.
Version 0.5.5
Fixed issue with tree felling patch.
Version 0.5.4
Fixed issue with argument parsing/validating.
Version 0.5.3
Fixed NREs occurring and prepared for SMAPI 4.0.0.
Version 0.5.1
Fixed issue with AnimalsOwned tokens not parsing multiple word inputs properly.
Fixed issue with AnimalsOwned tokens telling Content Patcher they're ready before they are.
Version 0.5.0
Added AnimalsOwned tokens.
Introduced workaround for stats which the game is not properly tracking.
Version 0.4.0
Added TreesFelled token.
Fixed issue with custom stats not persisting through saves.
Version 0.3.1
Fixed issue with FoodEaten token sometimes not returning anything when it should.
Version 0.3.0
Added FoodEaten token.
Version 0.2.2
Fixed issue with field initialization in MonstersKilled token.
Version 0.2.1
Fixed issue where token would not be available during save loading.
Fixed issue where certain stats would return an empty list instead of 0, breaking Query expressions.
Actually fixed issue with values not being cached properly. Whoops.
Version 0.2.0
Added MonstersKilled token for accessing monster kills stats.
Cleaned up matching logic so whitespace, capitalization, etc. doesn't matter.
Fixed issue where current values would be grabbed instead of cached values outside of context updates, which could result in inconsistent token state.
Version 0.1.0
Added Stats token for accessing all game-tracked stats.
This mod has no effect on gameplay by itself. It provides more options to people using Content Patcher to create patches, and as such may be a required dependency of any such content packs.
This mod adds all stats (tracked internally by the game) as Content Patcher tokens, for use in your Patches. This means you can do such things as: have NPCs comment on stats (see the header image), lock content/changes behind arbitrary stat numbers, give players custom rewards for milestones reached, trigger special events based on stats, and more!
Note: I am aware the banner art is garbage. It's low on my priority list.
Download this mod and unzip it into Stardew Valley/Mods.
Add this mod as a dependency to your manifest.json.
Reference the custom token as shown below.
Documentation
Visit GitHub for up-to-date documentation, including a detailed breakdown of all available tokens added by this mod.
Compatibility
Works with Stardew Valley 1.5.4 on Windows. Linux/Mac have not been tested, but should work. 1.5.5 beta versions have not been tested extensively, but should work. Earlier game versions should work, but have not been tested. Please report any issues you encounter.
Works in single player and multiplayer. Again, multiplayer has not been extensively tested, so please report any issues you encounter. Kind of works in multiplayer but doesn't save data for anybody but the host unfortunately. I am working on a rewrite which will address this and other issues.