Hybrid Crop Engine lets content packs define hybrid crops, which have a chance of appearing between two fully-grown parent crops.
Install
- Install the latest version of SMAPI.
- Unzip the mod folder into Stardew Valley/Mods.
- Run the game using SMAPI.
Use
For players
This mod does nothing on its own[/b], you need to install content packs for it.
You only need to install the mod and it'll work automatically for content packs that use it. If you have two fully-grown crops in the ground with an empty spot between them, there's a random chance each day a hybrid crop will start growing there.
See the optional downloads for an example Garsnips mod (a hybrid of garlic and parnsips).
For mod authors
Edit the Data/HybridCrops asset using Content Patcher or SMAPI's content API. For example, using Content Patcher with Json Assets tokens:
{ <br /> "Format": "1.24.0", <br /> "Changes": [ <br /> { <br /> "Action": "EditData", <br /> "Target": "Data/HybridCrops", <br /> "Entries": { <br /> "{{spacechase0.JsonAssets/CropId:Garsnip}}": { <br /> "BaseCropA": 0, <br /> "BaseCropB": 4, <br /> "Chance": 0.05, <br /> } <br /> } <br /> } <br /> ] <br />}
The key is the crop index for the hybrid crop in the TileSheets\crops spritesheet. The value is an object containing three fields:
- BaseCropA: the index of the first parent crop.
- BaseCropB: the index of the second parent crop.
- Chance: a percentage chance of a hybrid appearing each day, as a value between 0 and 1 (e.g. 0.05 for 5%).
Compatibility
Compatible with Stardew Valley 1.5.5+ on Linux/macOS/Windows, both single-player and multiplayer.
See also