Line 2: |
Line 2: |
| | | |
| ==Raw data== | | ==Raw data== |
− | Animal data is stored in <tt>Content\Data\FarmAnimals.xnb</tt>, which can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.3.36}} for reference: | + | Animal data is stored in <tt>Content\Data\FarmAnimals.xnb</tt>, which can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.4.5}} for reference: |
| | | |
| {{collapse|Data|content=<source lang="json"> | | {{collapse|Data|content=<source lang="json"> |
Line 38: |
Line 38: |
| |- | | |- |
| | 0 | | | 0 |
− | | <tt>{{t|Days to Produce}}</tt> | + | | {{t|days to produce}} |
− | | Number of days for the animal to [[Animals#Produce|produce]]. Is affected by [[Animals#Animal_Care|friendship and happiness]] in some way. [[Sheep]] are affected by the [[Shepherd]] profession. | + | | Number of days for the animal to [[Animals#Produce|produce]]. This is affected by [[Animals#Animal Care|friendship and happiness]], and [[Sheep]] are affected by the [[Shepherd]] profession. |
| |- | | |- |
| | 1 | | | 1 |
− | | <tt>{{t|Age When Mature}}</tt> | + | | {{t|age when mature}} |
| | Number of days until mature. | | | Number of days until mature. |
| |- | | |- |
| | 2 | | | 2 |
− | | <tt>{{t|Default Produce Index}}</tt> | + | | {{t|default produce index}} |
− | | Index number for [[Animals#Produce|default produce item]] (ex <tt>184</tt> is "[[Milk]]"). Taken from [[Modding:Object data]]. | + | | The [[Modding:Object data|item ID]] for the [[Animals#Produce|default produce item]] (e.g. <tt>184</tt> is [[Milk]]). |
| |- | | |- |
| | 3 | | | 3 |
− | | <tt>{{t|Deluxe Produce Index}}</tt> | + | | {{t|deluxe produce index}} |
− | | Index number for [[Animals#Deluxe_and_Large_Products|deluxe produce item]] (ex <tt>186</tt> is "[[Large Milk]]"). Taken from [[Modding:Object data]]. | + | | The [[Modding:Object data|item ID]] for the [[Animals#Deluxe and Large Products|deluxe produce item]] (e.g. <tt>186</tt> is [[Large Milk]]). |
| |- | | |- |
| | 4 | | | 4 |
− | | <tt>{{t|Sound}}</tt> | + | | {{t|sound}} |
− | | What sound clip the animal will use. Accepts all [https://docs.google.com/spreadsheets/d/1CpDrw23peQiq-C7F2FjYOMePaYe0Rc9BwQsj3h6sjyo/edit#gid=239695361 Sound Bank IDs]. | + | | The sound clip the animal uses (see [https://docs.google.com/spreadsheets/d/1CpDrw23peQiq-C7F2FjYOMePaYe0Rc9BwQsj3h6sjyo/edit#gid=239695361 soundbank IDs]). |
| |- | | |- |
− | | 5-8 | + | | 5-12 |
− | | <tt>{{t|Front and Back Bounding Box}}</tt> | + | | {{t|bounding boxes}} |
− | | Unused data. In the form of <tt>x/y/width/height/</tt>. Can be all zeroes. | + | | Unused data. The front & back (5-8) and sideways (9-12) bounding boxes, in the form of <tt>x/y/width/height</tt>. Can be all zeroes. |
− | |-
| |
− | | 9-12
| |
− | | <tt>{{t|Sideways Bounding Box}}</tt>
| |
− | | Unused data. In the form of <tt>x/y/width/height/</tt>. Can be all zeroes.
| |
| |- | | |- |
| | 13 | | | 13 |
− | | <tt>{{t|Harvest Type}}</tt> | + | | {{t|harvest type}} |
− | | Accepts <tt>0</tt> (lay like [[Chickens]]), <tt>1</tt> (grab with a [[tool]]), or <tt>2</tt> (unused - seen only on the Hog and sets name to "It"). [[Pigs]] have a <tt>harvest type</tt> of <tt>1</tt> and a <tt>harvest tool</tt> of <tt>null</tt>, but their [[Truffle]] finding capability is limited to animals that have a <tt>type</tt> that contains "Pig". | + | | How the animal produces items. The possible values are <tt>0</tt> (lay like [[Chickens]]), <tt>1</tt> (grab with a [[tool]]), and <tt>2</tt> (unused - seen only on the Hog and sets name to "It"). [[Pigs]] have a {{t|harvest type}} of <tt>1</tt> and a {{t|harvest tool}} of <tt>null</tt>, but their [[Truffle]] finding capability is limited to animals that have a <tt>type</tt> that contains "Pig". |
| |- | | |- |
| | 14 | | | 14 |
− | | <tt>{{t|Show Different Texture When Ready for Harvest}}</tt> | + | | {{t|change texture when item ready}} |
− | | Used for indicating an animal with a secondary texture. Accepts <tt>true</tt> or <tt>false</tt>. Must have a <tt>Sheared</tt> texture loaded such as <tt>Animals/ShearedSheep.xnb</tt>. | + | | Whether the animal should use a secondary texture when you can harvest an item. Can be <tt>true</tt> or <tt>false</tt>. Must have a <tt>Sheared</tt> texture loaded such as <tt>Animals/ShearedSheep.xnb</tt>. |
| |- | | |- |
| | 15 | | | 15 |
− | | <tt>{{t|Building Type}}</tt> | + | | {{t|building type}} |
− | | [[Animals#Housing|Building]] which the animal can live in such as <tt>Coop</tt> or <tt>Barn</tt>. Matches to [[Modding:Blueprint data|blueprints]] that have the building type in its name. | + | | The [[Animals#Housing|building]] in which the animal can live. This must be a [[Modding:Blueprint data|blueprint type]], like <tt>Coop</tt> or <tt>Barn</tt>. |
− | |-
| |
− | | 16-17
| |
− | | <tt>{{t|Front and Back Sprite Width/Height}}</tt>
| |
− | | Size in pixels of front and back sprites. [[Coop]] animals such as [[Chickens]] are <tt>16/16</tt> and [[Barn]] animals such as [[Cows]] are <tt>32/32</tt>.
| |
| |- | | |- |
− | | 18-19 | + | | 16-19 |
− | | <tt>{{t|Sideways Sprite Width/Height}}</tt> | + | | {{t|sprite size}} |
− | | Size in pixels of sideways sprites. [[Coop]] animals such as [[Chickens]] are <tt>16/16</tt> and [[Barn]] animals such as [[Cows]] are <tt>32/32</tt>. | + | | The front & back sprite (16-17) and sideways (18-19) sprite width/height in pixels. [[Coop]] animals such as [[Chickens]] are <tt>16/16</tt> and [[Barn]] animals such as [[Cows]] are <tt>32/32</tt>. |
| |- | | |- |
| | 20 | | | 20 |
− | | <tt>{{t|Fullness Drain}}</tt> | + | | {{t|fullness drain}} |
− | | Daily amount taken from the animal's [[Animals#Food|fullness]] value. | + | | The daily reduction in the animal's [[Animals#Food|fullness]] value. |
| |- | | |- |
| | 21 | | | 21 |
− | | <tt>{{t|Happiness Drain}}</tt> | + | | {{t|happiness drain}} |
− | | Daily amount taken from the animal's [[Animals#Mood|happiness]] value. | + | | The daily reduction in the animal's [[Animals#Mood|happiness]] value. |
| |- | | |- |
| | 21 | | | 21 |
− | | <tt>{{t|Harvest Tool}}</tt> | + | | {{t|harvest tool}} |
− | | Which [[tool]] is needed to harvest [[Animals#Produce|produce]] from animal with a <tt>harvest type</tt> of <tt>1</tt>. Accepts <tt>null</tt> (no tool) or any [[tool]] such as <tt>Milk Pail</tt> or <tt>Shears</tt>. | + | | Which [[tool]] is needed to harvest [[Animals#Produce|produce]] from animal with a {{t|harvest type}} of <tt>1</tt>. This can be <tt>null</tt> (no tool) or any [[tool]] such as <tt>Milk Pail</tt> or <tt>Shears</tt>. |
| |- | | |- |
| | 23 | | | 23 |
− | | <tt>{{t|Meat Index}}</tt> | + | | {{t|meat index}} |
− | | Unused data. Index number for meat [[Modding:Object data|objects]]. May be used by mods such as [https://www.nexusmods.com/stardewvalley/mods/1538 Animal Husbandry]. | + | | Unused data. The [[Modding:Object data|item ID]] for the meat item when butchered. May be used by mods like {{Nexus mod|1538|Animal Husbandry}}. |
| |- | | |- |
| | 24 | | | 24 |
− | | <tt>{{t|Price}}</tt> | + | | {{t|sell price}} |
− | | Used to calculate the amount you get for [[Animals#Selling Animals|selling]] an animal. This is not the cost of the animal when purchasing from [[Marnie's Ranch]]. | + | | Affects the price when you [[Animals#Selling Animals|sell an animal]]. This has no effect on the price of animals in [[Marnie's Ranch]], which is set in the game code. |
| |- | | |- |
| | 25 | | | 25 |
− | | <tt>{{t|Display Type}}</tt> | + | | {{t|display type}} |
− | | Name to display for the animal's <tt>type</tt>. Used for non-English language compatibility, but is also present in English version. | + | | The translated animal name. Only used when not playing in English; English players will see the {{t|type}} value. |
| |- | | |- |
| | 26 | | | 26 |
− | | <tt>{{t|Display Building}}</tt> | + | | {{t|display building}} |
− | | Name to display for what <tt>building type</tt> the animal lives in. Used for non-English language compatibility, but is also present in English version. | + | | The translated building name. Only used when not playing in English; English players will see the {{t|building type}} value. |
| |} | | |} |
| | | |