Skip to content

Adds farm animals as new entries to Data/FarmAnimals without overwriting existing farm animals

Notifications You must be signed in to change notification settings

paritee/Paritee.StardewValley.FarmAnimals

Repository files navigation

Farm Animals

Adds farm animals as new entries to Data/FarmAnimals without overwriting existing farm animals.

Contents

Get Started

Using with BFAV

The following section explains how to add a new farm animal with the Better Farm Animal Variety (BFAV) mod. In this example we will be using Paritee's White Bull mod, but this can be done with any farm animal type that has been loaded into Data/FarmAnimals. See Configure.FarmAnimals for more information on the Types field.

  1. Make sure you have installed BFAV
  2. Unzip the Paritee's White Bull folder into Stardew Valley/Mods
  3. Add "White Bull" to the Cows.Types array inside BFAV's config.json
  4. Run the game using SMAPI

Your Cows section of the config.json should now look like the following:

"Cows": {
  "Name": "default",
  "Description": "default",
  "ShopIcon": "default",
  "Types": [
    "White Cow",
    "Brown Cow",
    "White Bull"
  ]
},

Using with Content Patcher

You cannot add a new farm animal without BFAV, but you can override and existing farm animal with a few modifications. Here is a method for overriding the White Cow with Paritee's White Bull. To do this, you need to change the following inside the farm animal mod's content.json:

  1. Change the Data/FarmAnimals Entries key to White Cow
{
  "Action": "EditData",
  "Target": "Data/FarmAnimals",
  "Entries": {
    "White Cow": ..,
  }
},
  1. Change the sprite Target paths to White Cow
{
  "Action": "Load",
  "Target": "Animals/White Cow",
  ..
},
{
  "Action": "Load",
  "Target": "Animals/BabyWhite Cow",
  ..
},
  1. Change the localization Data/FarmAnimals Field keys to White Cow for each language
{
  "Action": "EditData",
  "Target": "Data/FarmAnimals",
  "Fields": {
    "White Cow": ..,
  },
  "When": { "Language": "de" },
},

Skins

More Animals Mod

WIP

Custom Spritesheets

It is possible to override the default spritesheets for the BFAV farm animals so that you can use your favourite packs. You need to do the following two steps within your Content Patcher skin mod.

Example

I'll be using Elle's New Barn Animals as the Content Patcher skin mod and Paritee's White Bulls as the BFAV farm animal in the example.

  1. Add your target BFAV farm animal's mod UniqueID (found in manifest.json) as a required dependency in your Content Patcher skin mod's manifest.json.
{
   "Name": "Elle's New White Cow",
   ..
   "ContentPackFor": {
      "UniqueID": "Pathoschild.ContentPatcher"
   },
   "Dependencies": [
      {
         "UniqueID": "Paritee.WhiteBulls",
         "IsRequired": true
      }
   ]
}
  1. In your Content Patcher skin mod's content.json replace all "Action": "Load" to "Action": "EditImage" and change all instances of Target to the same that's in your BFAV farm animal's content.json. Below is what your Content Patcher skin mod's content.json should look like.
{
  "Format": "1.3",
  "Changes": [
       {
          "Action": "EditImage",
          "Target": "Animals/White Bull",
          ..
       },
       {
          "Action": "EditImage",
          "Target": "Animals/BabyWhite Bull",
          ..
       },
    ]
}

Tools

About

Adds farm animals as new entries to Data/FarmAnimals without overwriting existing farm animals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published