This wiki is a read-only version of the Stardew Valley Wiki. The official editable wiki maintained by ConcernedApe can be found at stardewvalleywiki.com

Changes

Jump to: navigation, search

Modding:Animal data

501 bytes removed, 19:25, 23 November 2020
copyedit, simplify a bit, minor updates & clarifications
==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.34.365}} for reference:
{{collapse|Data|content=<source lang="json">
|-
| 0
| <tt>{{t|Days days to Produceproduce}}</tt>| Number of days for the animal to [[Animals#Produce|produce]]. Is This is affected by [[Animals#Animal_CareAnimal Care|friendship and happiness]] in some way. , and [[Sheep]] are affected by the [[Shepherd]] profession.
|-
| 1
| <tt>{{t|Age When Matureage when mature}}</tt>
| Number of days until mature.
|-
| 2
| <tt>{{t|Default Produce Indexdefault produce index}}</tt>| Index number The [[Modding:Object data|item ID]] for the [[Animals#Produce|default produce item]] (ex e.g. <tt>184</tt> is "[[Milk]]"). Taken from [[Modding:Object data]].
|-
| 3
| <tt>{{t|Deluxe Produce Indexdeluxe produce index}}</tt>| Index number The [[Modding:Object data|item ID]] for the [[Animals#Deluxe_and_Large_ProductsDeluxe and Large Products|deluxe produce item]] (ex e.g. <tt>186</tt> is "[[Large Milk]]"). Taken from [[Modding:Object data]].
|-
| 4
| <tt>{{t|Soundsound}}</tt>| What The sound clip the animal will use. Accepts all uses (see [https://docs.google.com/spreadsheets/d/1CpDrw23peQiq-C7F2FjYOMePaYe0Rc9BwQsj3h6sjyo/edit#gid=239695361 Sound Bank soundbank IDs]).
|-
| 5-812| <tt>{{t|Front and Back Bounding Boxbounding boxes}}</tt>| Unused data. In the form of <tt>x/y/width/height/</tt>. Can be all zeroes.|The front & back (5-| 8) and sideways (9-12| <tt>{{t|Sideways Bounding Box}}</tt>| Unused data. In ) bounding boxes, in the form of <tt>x/y/width/height/</tt>. Can be all zeroes.
|-
| 13
| <tt>{{t|Harvest Typeharvest type}}</tt>| Accepts How the animal produces items. The possible values are <tt>0</tt> (lay like [[Chickens]]), <tt>1</tt> (grab with a [[tool]]), or and <tt>2</tt> (unused - seen only on the Hog and sets name to "It"). [[Pigs]] have a <tt>{{t|harvest type</tt> }} of <tt>1</tt> and a <tt>{{t|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".
|-
| 14
| <tt>{{t|Show Different Texture When Ready for Harvestchange texture when item ready}}</tt>| Used for indicating an Whether the animal with should use a secondary texturewhen you can harvest an item. Accepts 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
| <tt>{{t|Building Typebuilding type}}</tt>| The [[Animals#Housing|Buildingbuilding]] in which the animal can live in such as <tt>Coop</tt> or <tt>Barn</tt>. Matches to This must be a [[Modding:Blueprint data|blueprintsblueprint type]] that have the building type in its name.|-| 16-17| , like <tt>{{t|Front and Back Sprite Width/Height}}Coop</tt>| Size in pixels of front and back sprites. [[Coop]] animals such as [[Chickens]] are or <tt>16/16</tt> and [[Barn]] animals such as [[Cows]] are <tt>32/32</tt>.
|-
| 1816-19| <tt>{{t|Sideways Sprite Width/Heightsprite size}}</tt>| Size The front & back sprite (16-17) and sideways (18-19) sprite width/height 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>.
|-
| 20
| <tt>{{t|Fullness Drainfullness drain}}</tt>| Daily amount taken from The daily reduction in the animal's [[Animals#Food|fullness]] value.
|-
| 21
| <tt>{{t|Happiness Drainhappiness drain}}</tt>| Daily amount taken from The daily reduction in the animal's [[Animals#Mood|happiness]] value.
|-
| 21
| <tt>{{t|Harvest Toolharvest tool}}</tt>| Which [[tool]] is needed to harvest [[Animals#Produce|produce]] from animal with a <tt>{{t|harvest type</tt> }} of <tt>1</tt>. Accepts This can be <tt>null</tt> (no tool) or any [[tool]] such as <tt>Milk Pail</tt> or <tt>Shears</tt>.
|-
| 23
| <tt>{{t|Meat Indexmeat index}}</tt>| Unused data. Index number for meat The [[Modding:Object data|objectsitem ID]]for the meat item when butchered. May be used by mods such as [https://www.nexusmods.com/stardewvalley/mods/like {{Nexus mod|1538 |Animal Husbandry]}}.
|-
| 24
| <tt>{{t|Pricesell price}}</tt>| Used to calculate Affects the amount price when you get for [[Animals#Selling Animals|sellingsell an animal]] an animal. This is not has no effect on the cost price of the animal when purchasing from animals in [[Marnie's Ranch]], which is set in the game code.
|-
| 25
| <tt>{{t|Display Typedisplay type}}</tt>| Name to display for the The translated animal's <tt>type</tt>name. Used for non-English language compatibility, but is also present Only used when not playing in English version; English players will see the {{t|type}} value.
|-
| 26
| <tt>{{t|Display Buildingdisplay building}}</tt>| Name to display for what <tt>The translated building type</tt> the animal lives inname. Used for non-English language compatibility, but is also present Only used when not playing in English version; English players will see the {{t|building type}} value.
|}
Protected, translators
5,421
edits

Navigation menu