0 of 0

File information

Last updated

Original upload

Created by

Kronosta

Uploaded by

KronosTitanAnthem

Virus scan

Safe to use

About this mod

Adds a simple way for Content Patcher packs to add custom wild seeds/forage crops.

Requirements
Permissions and credits
THIS MOD IS ONLY AVAILABLE FOR 1.6

The first mod using this is now available! Check out Cloudberries As Forage (by me)!


To make a custom forage crop, make a seed item, then make a crop, both as normal.

Then, add the key "Kronosta.ForageCrops/Spawns" to the CustomFields of the crop, with the value being a space-separated list of object-type unqualified item ids. You'll still need a HarvestItemId entry; that will be the harvest if something goes wrong.

Example:
{
"Format": "2.0.0",
"Changes": [
  {
"Action": "EditData",
"Target": "Data/Objects",
"Entries": {
"{{ModId}}_ShellSeeds": {
  "Name": "{{ModId}}_ShellSeeds",
  "DisplayName": "Shell Seeds",
  "Description": "A packet of shell seeds.",
  "Type": "Basic",
  "Category": -74,
  "Price": 10,
  "Texture": "Data/Crops", //CHANGE TEXTURE NAME
  "SpriteIndex": 0//CHANGE SPRITE INDEX
}
}
  },
  {
"Action": "EditData",
"Target": "Data/Crops",
"Entries": {
"seedtest": {
  "Seasons": [ "spring", "summer", "fall", "winter" ],
  "DaysInPhase": [ 1, 1 ],
  "HarvestItemId": "{{ModId}}_Error",  //FALLBACK HARVEST
  "Texture": "{{InternalAssetKey:crops.png}}",  //CHANGE TEXTURE NAME
  "SpriteIndex": 0,  //CHANGE SPRITE INDEX
  "CustomFields": {
"Kronosta.ForageCrops/Spawns": "392 393 394" //PUT HARVEST ITEM IDS HERE
  }
}
}
  }
]
}

Source code is here