Modding:Animal data
Revision as of 04:39, 4 October 2019 by Pathoschild (talk | contribs) (→Basic format: rename section to 'Format', tweak intro line)
Raw data
Animal data is stored in Content\Data\FarmAnimals.xnb, which can be unpacked for editing. Here's the raw data as of 1.3.36 for reference:
Data |
---|
{
"White Chicken": "1/3/176/174/cluck/8/32/48/32/8/32/48/32/0/false/Coop/16/16/16/16/4/7/null/641/800/White Chicken/Coop",
"Brown Chicken": "1/3/180/182/cluck/8/32/48/32/8/32/48/32/0/false/Coop/16/16/16/16/7/4/null/641/800/Brown Chicken/Coop",
"Blue Chicken": "1/3/176/174/cluck/8/32/48/32/8/32/48/32/0/false/Coop/16/16/16/16/7/4/null/641/800/Blue Chicken/Coop",
"Void Chicken": "1/3/305/305/cluck/8/32/48/32/8/32/48/32/0/false/Coop/16/16/16/16/4/4/null/641/800/Void Chicken/Coop",
"Duck": "2/5/442/444/Duck/8/32/48/32/8/32/48/32/0/false/Coop/16/16/16/16/3/8/null/642/4000/Duck/Coop",
"Rabbit": "4/6/440/446/rabbit/8/32/48/32/8/32/48/32/0/false/Coop/16/16/16/16/10/5/null/643/8000/Rabbit/Coop",
"Dinosaur": "7/0/107/-1/none/8/32/48/32/8/32/48/32/0/false/Coop/16/16/16/16/1/8/null/644/1000/Dinosaur/Coop",
"White Cow": "1/5/184/186/cow/36/64/64/64/36/64/64/64/1/false/Barn/32/32/32/32/15/5/Milk Pail/639/1500/White Cow/Barn",
"Brown Cow": "1/5/184/186/cow/36/64/64/64/36/64/64/64/1/false/Barn/32/32/32/32/15/5/Milk Pail/639/1500/Brown Cow/Barn",
"Goat": "2/5/436/438/goat/24/64/84/64/24/64/84/64/1/false/Barn/32/32/32/32/10/5/Milk Pail/644/4000/Goat/Barn",
"Pig": "1/10/430/-1/pig/24/64/84/64/24/64/84/64/1/false/Barn/32/32/32/32/20/5/null/640/16000/Pig/Barn",
"Hog": "1/5/640/-1/pig/24/64/84/64/24/64/84/64/2/false/Barn/32/32/32/32/20/5/null/640/1500/Hog/Barn",
"Sheep": "3/4/440/-1/sheep/24/64/84/64/24/64/84/64/1/true/Barn/32/32/32/32/15/5/Shears/644/8000/Sheep/Barn"
}
|
Format
Each entry in the data contains a key and a value, and each value contains many fields.
Key
An animal's type must be a key that exists in the data. Each key in the data must be unique.
Value
All entries share the same value format, which cannot be re-ordered. Each field is explained below.
index | syntax | description |
---|---|---|
0 | <Days to Produce>
|
Number of days for the animal to produce. Is affected by friendship and happiness in some way. Sheep are affected by the Shepherd profession. |
1 | <Age When Mature>
|
Number of days until mature. |
2 | <Default Produce Index>
|
Index number for default produce item (ex 184 is "Milk"). Taken from Modding:Object data. |
3 | <Deluxe Produce Index>
|
Index number for deluxe produce item (ex 186 is "Large Milk"). Taken from Modding:Object data. |
4 | <Sound>
|
What sound clip the animal will use. Accepts all Sound Bank IDs. |
5-8 | <Front and Back Bounding Box>
|
Unused data. In the form of x/y/width/height/. Can be all zeroes. |
9-12 | <Sideways Bounding Box>
|
Unused data. In the form of x/y/width/height/. Can be all zeroes. |
13 | <Harvest Type>
|
Accepts 0 (lay like Chickens), 1 (grab with a tool), or 2 (unused - seen only on the Hog and sets name to "It"). Pigs have a harvest type of 1 and a harvest tool of null, but their Truffle finding capability is limited to animals that have a type that contains "Pig". |
14 | <Show Different Texture When Ready for Harvest>
|
Used for indicating an animal with a secondary texture. Accepts true or false. Must have a Sheared texture loaded such as Animals/ShearedSheep.xnb. |
15 | <Building Type>
|
Building which the animal can live in such as Coop or Barn. Matches to blueprints that have the building type in its name. |
16-17 | <Front and Back Sprite Width/Height>
|
Size in pixels of front and back sprites. Coop animals such as Chickens are 16/16 and Barn animals such as Cows are 32/32. |
18-19 | <Sideways Sprite Width/Height>
|
Size in pixels of sideways sprites. Coop animals such as Chickens are 16/16 and Barn animals such as Cows are 32/32. |
20 | <Fullness Drain>
|
Daily amount taken from the animal's fullness value. |
21 | <Happiness Drain>
|
Daily amount taken from the animal's happiness value. |
21 | <Harvest Tool>
|
Which tool is needed to harvest produce from animal with a harvest type of 1. Accepts null (no tool) or any tool such as Milk Pail or Shears. |
23 | <Meat Index>
|
Unused data. Index number for meat objects. May be used by mods such as Animal Husbandry. |
24 | <Price>
|
Used to calculate the amount you get for selling an animal. This is not the cost of the animal when purchasing from Marnie's Ranch. |
25 | <Display Type>
|
Name to display for the animal's type. Used for non-English language compatibility, but is also present in English version. |
26 | <Display Building>
|
Name to display for what building type the animal lives in. Used for non-English language compatibility, but is also present in English version. |