Producer Framework Mod (PFM) v1.9.5
The Producer Framework mod allows the creation of custom production rules in Stardew Valley. It supports both code interfaces and content packs, providing modders with flexible tools to modify production mechanics in the game.
Producer Framework simplifies the addition of new rules for production objects (like machines and equipment) in the game. The mod supports custom rules for creating and processing resources.
Example Code for Modders:
- Create a new NPC using Content Patcher.
- Set up production rules in the configuration files.
- Use the ProducerController class to add rules via code, or utilize ready-made templates for content packs. The API method AddContentPack can also be used to automatically load content packs from the directory.
Compatibility: Producer Framework is compatible with any mods using SMAPI to modify game data and supporting custom production mechanics.
Modding Instructions:
The mod provides templates for creating content packs, which can be found in the mod folder. These include comments on each property explaining its purpose. For example, the ProducerRules.json file contains production rules, while ProducersConfig.json contains configurations for new producers. Settings like frame display during production or machine completion are configured individually for each machine.
Installation:
- Install the latest version of SMAPI.
- Extract the Producer Framework mod into the /Stardew Valley/Mods folder.
- Launch the game through SMAPI.