Stardew Valley
0 of 0

File information

Last updated

Original upload

Created by

elbe

Uploaded by

elbebeta

Virus scan

Safe to use

About this mod

Allowing mod added animals to hatch from the Ostrich Incubator

Requirements
Permissions and credits
Changelogs
After updating the BFAV unofficial patch so Ostriches can hatch again (fixed bug with golden chickens too) started to wonder if the Ostrich Incubator could be modded to support modded animals.
Thus, my first official release: Barn Incubator Support.

While I don't provide any animals that make use of it, this is basically a framework, more creative modders can create larger, barn sized animals that incubate and hatch.

It's pretty easy to set up. Using BFAV Quails as an example you create or edit an animal's data to show them as being in a Barn (case insensitive):
1/5/Quail Egg/Large Quail Egg/cluck/36/64/64/64/36/64/64/64/0/false/Barn/16/16/16/16/15/5/null/639/1000/Japanese Quail/Barn"

The spot in the middle, index 15, is the one it checks by but the one at the end is the one displayed to the user. So, with some animal adding mod like BFAV, you can put in any item in the egg category that the animal produces and you'll get a brand new oviparous animal to name, pet, and exploit for your personal gain.

While the only dependency this has directly is SMAPI it doesn't add extra animals or modify the hatching logic, just the insert into incubator logic.

Extra details:
In the code the time it takes to incubate is 150 hours for all the coop birds, 250 hours for the ostrich, and twice the time for the dinosaur (300, in this case). I left it as coop animals are 150, any barn animals are 250, and anything with "Dinosaur" in it's name gets double that - in case someone wants to make a Large Dinosaur or something.

When you put any egg into the ostrich incubator the sprite turns into the ostrich one. I don't currently have any good ideas on how to dynamically change that so it's just a little visual oddity.

An optional Content Patcher mod has been uploaded that will rename the incubator from "Ostrich" to "Large"; I felt like it seemed appropriate.

Source can be found on GitHub