{"id":19136082,"url":"https://github.com/aceynk/persistentbuffs","last_synced_at":"2025-11-13T04:02:36.853Z","repository":{"id":246473825,"uuid":"821238824","full_name":"aceynk/PersistentBuffs","owner":"aceynk","description":"A Stardew Valley mod that adds support for longer-lasting buffs","archived":false,"fork":false,"pushed_at":"2024-10-06T22:27:01.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T18:19:03.948Z","etag":null,"topics":["c-sharp","smapi","stardew-valley","stardew-valley-mods"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aceynk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-28T05:40:01.000Z","updated_at":"2024-10-06T22:23:51.000Z","dependencies_parsed_at":"2024-06-28T06:45:16.227Z","dependency_job_id":"f5df6d3e-b45c-43c8-86e9-2aca33eec594","html_url":"https://github.com/aceynk/PersistentBuffs","commit_stats":null,"previous_names":["aceynk/persistentbuffs"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/aceynk/PersistentBuffs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aceynk%2FPersistentBuffs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aceynk%2FPersistentBuffs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aceynk%2FPersistentBuffs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aceynk%2FPersistentBuffs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aceynk","download_url":"https://codeload.github.com/aceynk/PersistentBuffs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aceynk%2FPersistentBuffs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284150295,"owners_count":26955773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-13T02:00:06.582Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-sharp","smapi","stardew-valley","stardew-valley-mods"],"created_at":"2024-11-09T06:33:05.922Z","updated_at":"2025-11-13T04:02:36.821Z","avatar_url":"https://github.com/aceynk.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PersistentBuffs\n\nPersistent buffs is a SMAPI (C#) Stardew Valley mod.\nIt allows Content Packs to make buffs persist across days and saves.\n\n## Dependencies\n\nRequires SMAPI (https://smapi.io)\nContent Packs likely require Content Patcher (https://www.nexusmods.com/stardewvalley/mods/1915)\n\n## Mod Authors: How to use\n\nI'll give an example of how to use a Content Patcher content pack to designate a buff as persistent.\nThis assumes you already have some knowledge with making Content Patcher mods.\n\nFirst, find a buff you want to make persistent.\nI'll make a custom one, with the entry below:\n\n```json\n{\n    \"Action\": \"EditData\",\n    \"Target\": \"Data/Buffs\",\n    \"Entries\": {\n        \"{{ModID}}_PersistentSpeed\": {\n            \"DisplayName\": \"PersistentSpeed\",\n            \"Duration\": 10000000,\n            \"IconTexture\": \"TileSheets\\\\BuffsIcons\",\n            \"IconSpriteIndex\": 9,\n            \"Effects\": {\n                \"Speed\": 1\n            }\n        }\n    }\n}\n```\n(see https://stardewvalleywiki.com/Modding:Migrate_to_Stardew_Valley_1.6#Custom_buffs for more information)\n\nNext, let's assign the buff to a food item (or whatever you want to use to add the buff).\nI'll assign it to carrot items, with the entry below:\n\n```json\n{\n    \"Action\": \"EditData\",\n    \"Target\": \"Data/Objects\",\n    \"TargetField\": [\n        \"Carrot\"\n    ],\n    \"Entries\": {\n        \"Buffs\": [\n            {\n                \"BuffId\": \"{{ModID}}_PersistentSpeed\"\n            }\n        ]\n    }\n}\n```\n(see https://github.com/Pathoschild/StardewMods/blob/develop/ContentPatcher/docs/author-guide/action-editdata.md for more information)\n\nNow, the PersistentSpeed buff will be applied whenever a carrot is eaten.\nNext, to make the buff persist throughout days and saves, one more patch is needed.\nAdd the buff id (here, it's \"{{ModID}}_PersistentSpeed\" (where {{ModID}} resolves to the id set in the mod manifest)) by targeting PersistentBuffs/PersistentBuffIds.\n\n```json\n{\n    \"Action\": \"EditData\",\n    \"Target\": \"aceynk.PersistentBuffs/PersistentBuffIds\",\n    \"Entries\": {\n        \"{{ModID}}_PersistentSpeed\": true\n    }\n}\n```\n\nCombining these patches, every carrot now gives a +1 speed buff that lasts through days and saves.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faceynk%2Fpersistentbuffs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faceynk%2Fpersistentbuffs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faceynk%2Fpersistentbuffs/lists"}