Buff frame

by aedenthorn·v0.7.0·Updated 2025-10-24

Allows modders to trigger buffs using Content Patcher

Screenshots 2 screenshots

About this mod Machine translation

Allows modders to trigger buffs using Content Patcher

Buff Framework

✨ **Make module development easier! ** This framework opens up new possibilities for the game buff system, allowing modders to flexibly trigger various buff effects based on Content Patcher conditions.

---

🎯 Core Functions

  • **Flexible Triggering**: Automatically activate buffs based on various game conditions
  • **Highly Customizable**: Supports custom gain attributes and icons
  • **Seamless Integration**: Perfectly compatible with Content Patcher and SMAPI

📝 Usage example

Here is a simple configuration example that automatically applies the Squid Ink Wonton buff when the player wears the "Midnight Dog Jacket":

```json

{

"Format": "1.28.4",

"Changes": [

{

"Action": "EditData",

"Target": "aedenthorn.BuffFramework/dictionary",

"Entries": {

"aedenthorn.JacketBuff": {

"shirt": "Midnight Dog Jacket",

"which": 28,

"source": "aedenthorn.MidnightDogJacketBuff",

"displaySource": "Midnight Dog Jacket Buff"

}

}

}

]

}

```

🎮 Gain type

The framework supports all buffs built into the game, including:

  • **6** - Full stomach
  • **7** - Quench your thirst
  • **12** - Burns
  • **13** - Slime
  • **14** - Curse
  • **17** - Tipsy
  • **18** - Frightened
  • **20** - Warrior Energy
  • **21** - Invincible
  • **22** - Adrenaline rush
  • **28** - Squid ink ravioli

⚙️ Advanced configuration

You can customize the following properties:

  • **Skill Bonus**: Farming, Fishing, Mining, Excavation, Luck, Foraging, Crafting
  • **Attribute improvement**: maximum physical strength, magnetic radius, speed, defense, attack
  • **Visual effects**: glow effects, custom icons
  • **Sound Effect**: Special sound effect when triggered
  • **Duration**: Precisely control the gain duration

🎪 Trigger conditions

Buffs can be triggered in a variety of ways:

  • **Edible items**: Set the `consume` field to specify the food
  • **Equipment Wear**: through `hat`, `shirt`, `pants`, `boots`, `ring` fields
  • **Custom Conditions**: Powerful condition system combined with Content Patcher

🔧 Technical characteristics

  • **SMAPI Compatible**: SMAPI support required
  • **Configuration Menu**: Integrated universal module configuration menu
  • **Open Source Code**: Full source code available on GitHub

🌟 Practical application

This framework is already used by several popular mods:

  • **Speed ​​Buff After Midnight**
  • **Birthday Buff**

💡 Development suggestions

  • Use the `which` field to reference a built-in buff, or use `buffId` to create a custom buff
  • Select the game's built-in icon through `sheetIndex`, or use `texturePath` to set a custom icon
  • Properly set the `duration` field to control the gain duration

---

🚀 **Start your buff module creation journey! ** This framework brings endless possibilities to Stardew Valley module development, allowing your creativity to be perfectly realized in the game.

Install & use Install: SMAPI mod (Stardew Valley standard)

  1. Install SMAPI first (Stardew Valley's mod loader): download it from smapi.io, run 'install on Windows.bat' and pick your game folder.
  2. Unzip the archive from playbuff and find the folder that contains manifest.json — that folder is the mod.
  3. Copy that whole folder into Stardew Valley/Mods/.
  4. Launch the game through SMAPI (run StardewModdingAPI.exe or set it as the launch option). The console before the title screen lists each mod's load result.

Cheat-style tools may not need SMAPI — unzip and run them as the readme describes. Back up your save before editing it; SMAPI lists failed mods in its console.

File & checksum

Filename
Buff Framework
File size
33.8 KiB
SHA-256
d198f19bb0f10d4cd4e87f3d98726cb4fefa4021fc048e0458483cb42593ebc0
Stored at
2026-10-10 11:27