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

1,308 bytes added, 15:20, 16 March 2019
Basic format
==Basic format==
Each entry in the data contains a '''key''' and a '''value''' made up of many '''fields'''. ===Key===An animal's <tt>type</tt> must be a key that exists in the data. Each key in the data must be unique. ===Value===All bundles entries share the same value format, which cannot be re-ordered. Each field is explained below.
{| class="wikitable"
|-
| 0
| <tt>{{t|Animal NameDays to Produce}}</tt>| What Number of days for the animal will be calledto [[Animals#Produce|produce]]. Can be changed freely or new entries added for new animalsIs affected by [[Animals#Animal_Care|friendship and happiness]] in some way. [[Sheep]] are affected by the [[Shepherd]] profession.
|-
| 1
| <tt>{{t|Days to Produce}}</tt>
| Number of days for the animal to produce its product. Is affected by friendship/happiness in some way.
|-
| 2
| <tt>{{t|Age When Mature}}</tt>
| Number of days until mature.
|-
| 32
| <tt>{{t|Default Produce Index}}</tt>
| Index number for [[Animals#Produce|default produce item ]] (ex <tt>184</tt> is "[[Milk]]"). Taken from springobjects[[Modding:Object data]].xnb
|-
| 43
| <tt>{{t|Deluxe Produce Index}}</tt>
| Index number for [[Animals#Deluxe_and_Large_Products|deluxe produce item ]] (ex <tt>186</tt> is "[[Large Milk]]"). Taken from springobjects.xnb[[Modding:Object data]].
|-
| 54| <tt>{{t|SoundIDSound}}</tt>| What sound clip the animal will use. Available sounds are <tt>cluck</tt>, <tt>Duck</tt>, <tt>rabbit</tt>, <tt>cow</tt>, <tt>goat</tt>, <tt>pig</tt>, <tt>sheep</tt>, or <tt>none</tt>Accepts all Sound Bank IDs.
|-
| 65-98| <tt>{{t|Front-to-back and Back Bounding Box}}</tt>| Unused data. In the form of <tt>8x/32y/48width/32height/</tt>. Can be all zeroes.
|-
| 109-1312
| <tt>{{t|Sideways Bounding Box}}</tt>
| Unused data. In the form of <tt>8x/32y/48width/32height/</tt>. Can be all zeroes.
|-
| 1413
| <tt>{{t|Harvest Type}}</tt>
| 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".
|-
| 1514| <tt>{{t|Show Different TextureWhen Ready for Harvest}}</tt>| Used for indicating an animal with a secondary texture, for example sheep. Accepts <tt>true</tt> or <tt>false</tt>. Must have a <tt>Sheared</tt> texture loaded such as <tt>Animals/ShearedSheep.xnb</tt>.
|-
| 1615
| <tt>{{t|Building Type}}</tt>
| [[Animals#Housing| Building category ]] which the animal lives can live in. Currently only such as <tt>Coop</tt> or <tt>Barn</tt>. Matches to [[Modding:Blueprint data|blueprints]] that have the building type in its name.
|-
| 1716-1817| <tt>{{t|Front and Back Sprite Width/Height}}</tt>| Size in pixels of front and back sprites. Ex: [[Coop]] animals such as [[Chickens ]] are <tt>16/16</tt> and [[Barn]] animals such as [[Cows]] are <tt>32/32</tt>.
|-
| 1918-2019| <tt>{{t|Sideways Sprite Width/Height}}</tt>| Size in pixels of sideways sprites. Ex: [[Coop]] animals such as [[Chickens ]] are <tt>16/16</tt> and [[Barn]] animals such as [[Cows]] are <tt>32/32</tt>.
|-
| 2120
| <tt>{{t|Fullness Drain}}</tt>
| Daily amount taken from the animal's [[Animals#Food|fullness]] value.
|-
| 2221
| <tt>{{t|Happiness Drain}}</tt>
| Daily amount taken from the animal's [[Animals#Mood|happiness]] value.
|-
| 2321
| <tt>{{t|Harvest Tool}}</tt>
| Which [[tool ]] is needed to harvest [[Animals#Produce|produce ]] from animalwith a <tt>harvest type</tt> of <tt>1</tt>. Excepts Accepts <tt>Milk Pailnull</tt>, (no tool) or any [[tool]] such as <tt>ShearsMilk Pail</tt>, or <tt>nullShears</tt>.
|-
| 2423
| <tt>{{t|Meat Index}}</tt>
| Unused data. Index number for meat sprites, pulled from SpringObjects[[Modding:Object data|objects]].xnb. Unused in vanilla game, but may May be used by mods such as ''Animal Husbandry''.
|-
| 2524
| <tt>{{t|Price}}</tt>
| Cost 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]].
|-
| 2625
| <tt>{{t|Display Type}}</tt>
| Name to display for the animal 's <tt>type</tt>. Used for non-English language compatibility, but is also present in English version.
|-
| 1626
| <tt>{{t|Display Building}}</tt>
| 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.
|}
[[Category:Modding]]
1
edit

Navigation menu