Growable
Attributes
Attribute | Type | Default value | Description |
---|---|---|---|
GrowthSpeed | float | 1 | How fast the plant grows. Value of 1 means a vine attempts to grow every 10 seconds while 2 and 0.5 mean every 5 and 20 seconds respectively. |
MaxWater | float | 100 | How much water the plant can hold. Affects how long the plant can survive without water. |
ExtraWaterUsedPerSecondWhileFlooded | float | 1 | How much extra water the plant uses per second while it is submerged in a flooded hull. |
WaterUsedPerSecond | float | 1 | How much water the plant consumes passively per second. |
SeedSpawnChance | float | 0.01 | Percentage chance of a seed item being produced on growth ticks (every 10 seconds without a multiplier). 0.01 means 1% chance. Not used in vanilla plants. |
ProductSpawnChance | float | 0.01 | How often a product item is produced on growth ticks (every 10 seconds without a multiplier). 0.01 means 1% chance. |
MutationProbability | float | 0.5 | Completely unused property that was added on the first design pass but due to the first pass being too complex was never used and now it is used by mods so it cannot be removed. |
FlowerTint | Color | “1.0,1.0,1.0,1.0” | Color of the flowers. |
FlowerQuantity | int | 3 | Number of flowers drawn. |
BaseFlowerScale | float | 0.25 | Size of the flower sprites. |
BaseLeafScale | float | 0.5 | Size of the leaf sprites. |
LeafTint | Color | “1.0,1.0,1.0,1.0” | Color of the leaves. |
LeafProbability | float | 0.33 | Chance of a leaf appearing behind a branch. |
VineTint | Color | “1.0,1.0,1.0,1.0” | Color of the vines. |
MaximumVines | int | 32 | Maximum number of vine tiles the plant can grow. |
VineScale | float | 0.25 | Size of the vine sprites. |
DeadTint | Color | “0.26,0.27,0.29,1.0” | Tint of a dead plant. |
GrowthWeights | Vector4 | “1,1,1,1” | Probability for the plant to grow in a direction. |
FireVulnerability | float | 0 | How much water is lost due to fires every 10 seconds. |
LinearProductAndSeedMultiplierBeforeFullyGrown | Vector2 | “0.0, 0.0” | Modifier to the percentage of product and seed items produced before the plant is fully grown based on how many vines have been grown. 0 would mean no products or seeds are produced while 0.5 would mean half of the normal amount. |
Health | float | 100 |
This component also supports the attributes defined in: ItemComponent
Example
<Item identifier="saltvineseed" category="Misc" Tags="smallitem,seed,plantitem" maxstacksize="8" cargocontaineridentifier="metalcrate" scale="0.5" impactsoundtag="impact_soft" spritecolor="215,245,77,255">
<Growable growthspeed="0.076" pickingtime="3" maximumvines="18" maxhealth="375" hardiness="0.162" floodtolerance="0.2" seedrate="0" productrate="0.0056" flowerquantity="8" baseflowerscale="0.40" vinescale="0.25" vinetint="135,187,61,255" flowertint="240,180,17,255">
<ProducedItem identifier="saltbulb" probability="1.0" />
<VineSprites vineatlas="Content/Items/Gardening/branches.png" decayatlas="Content/Items/Gardening/branches_overlay.png">
<LeafSprite texture="Content/Items/Gardening/GrowablePlants_Temp.png" sourcerect="0,512,256,256" />
<LeafSprite texture="Content/Items/Gardening/GrowablePlants_Temp.png" sourcerect="256,512,256,256" />
<FlowerSprite texture="Content/Items/Gardening/GrowablePlants_Temp.png" sourcerect="384,768,128,128" />
<FlowerSprite texture="Content/Items/Gardening/GrowablePlants_Temp.png" sourcerect="512,768,128,128" />
<FlowerSprite texture="Content/Items/Gardening/GrowablePlants_Temp.png" sourcerect="640,768,128,128" />
<VineSprite type="Stem" sourcerect="640,640,128,128" />
<VineSprite type="CrossJunction" sourcerect="512,640,128,128" />
<VineSprite type="HorizontalLine" sourcerect="512,512,128,128" />
<VineSprite type="VerticalLine" sourcerect="640,512,128,128" />
<VineSprite type="TurnTopRight" sourcerect="0,512,128,128" />
<VineSprite type="TurnTopLeft" sourcerect="384,512,128,128" />
<VineSprite type="TurnBottomLeft" sourcerect="256,512,128,128" />
<VineSprite type="TurnBottomRight" sourcerect="128,512,128,128" />
<VineSprite type="TSectionTop" sourcerect="128,640,128,128" />
<VineSprite type="TSectionLeft" sourcerect="256,640,128,128" />
<VineSprite type="TSectionBottom" sourcerect="384,640,128,128" />
<VineSprite type="TSectionRight" sourcerect="0,640,128,128" />
<VineSprite type="StumpTop" sourcerect="768,512,128,128" />
<VineSprite type="StumpLeft" sourcerect="896,512,128,128" />
<VineSprite type="StumpBottom" sourcerect="768,640,128,128" />
<VineSprite type="StumpRight" sourcerect="896,640,128,128" />
</VineSprites>
</Growable>
[...]
</Item>