Skip to content
jellysnake edited this page Dec 23, 2017 · 2 revisions

See the guide pages on adding a Vine or Bush for information on how to use these prefabs.

Seed Definition

Type Paramater Description Default
String sustainable The prefab containing either a VineDefinition or a BushDefinition component Defaults to the prefab this component is on

Example

"SeedDefinition":{
  "prefab":"AdditionalVegetables:OrangeBush"
}

Bush Definition

Type Paramater Description Default
Boolean sustainable Controls whether the plant should be destroyed after harvest. If true then the bush will simply regress a stage and drop produce. If false then the bush will be destroyed and will drop both produce and seeds. true
String produce The prefab to use for drops. This will be dropped when the bush is harvested. N/A
String seed The prefab to use for the seeds. These will be dropped when the bush is fully grown and is broken. The prefab specified in the produce field
String -> GrowthStage growthStages The stages the plant will progress through, order is important. The string is the name of the block to use and the GrowthStage contains the length of the stage. N/A

Example (from AdditionalFruit:PineappleBush)

"BushDefinition": {
  "growthStages": {
    "AdditionalFruits:YoungPineappleBush": {
      "minTime": 4000,
      "maxTime": 6000
    },
    "AdditionalFruits:MaturePineappleBush": {
      "minTime": 5000,
      "maxTime": 8000
    },
    "AdditionalFruits:FruitingPineappleBush": {
      "minTime": 4000,
      "maxTime": 7000
    }
  },
  "produce": "AdditionalFruits:Pineapple"
}

Growth Stage

Type Paramater Description Default
int minTime The minimum time this stage will last in milliseconds N/A
int maxTime The maximum time this stage will last in milliseconds N/A

Example

{
  "minTime": 5000,
  "maxTime": 8000
}

Vine Definition

Type Paramater Description Default
String stem The block to use as the stem N/A
String bud The prefab containing the BushDefinition to use for the buds N/A
int minGrowTime The minimum time between growth stages in milliseconds N/A
int maxGrowTime The maximum time between growth stages in milliseconds N/A

Example (from AdditionalVegetables:Cucumber)

"VineDefinition": {
  "stem": "AdditionalVegetables:CucumberVineStem",
  "bud": "AdditionalVegetables:CucumberBud",
  "minGrowTime": 4000,
  "maxGrowTime": 7000
}
Clone this wiki locally