This guide should teach you how to create a basic Content Patcher mod to add (not overwrite) a custom production rule; For example to add a modded item!

Before you start... download the newest version of Item Extension Example for Millnificent 3.X.X

Step 1 - Update manifest.json
Read Modding:Modder Guide/APIs/Manifest first!

Update the manifest.json with your informations!
Add least update these "keys":

  • Name
  • Author
  • UniqueID
  • UpdateKeys

Step 2 - Understanding the content.json example
Read action-editdata.md first!

Note: The sample package is built to work even if Millnificent is NOT installed.

The first part looks like this
{
  "Action": "EditData",
  "Target": "Data/Buildings",
  "TargetField": [  "Molenfeuer.Millnificent_Mill", "ItemConversions" ],
  [...]
}
and is the part where you can add custome production rules for Millnificent!

The second part
{
  "Action": "EditData",
  "Target": "Data/Buildings",
  "TargetField": [  "Mill", "ItemConversions" ],
  [...]
}
is made for the vanilla mill!

You can add rules for booth mills or just Millnificent. Its your choice!

Step 3 - Add production rules
It's easy. Read this wiki page and you will understand how to add production rules!

Each rule is defined within the "ProducedItems" part! The content.json has a sample rule that allows millnificent to convert Clay (ID: 330) into Chocolate Cake (ID: 220)! Use it as a template and have fun :D



If you need my help, feel free to hit me on Discord :) Search for "Molenfeuer" on the official Stardew Valley Discord!

Article information

Added on

Edited on

Written by

Molenfeuer

0 comments