Changes

Jump to navigation Jump to search
→‎Custom giant crops: clarify the ID a bit
Line 2,683: Line 2,683:     
===Custom giant crops===
 
===Custom giant crops===
You can now add/edit [[Crops#Giant Crops|giant crops]] by editing the <samp>Data/GiantCrops</samp> data asset. This consists of a string → model lookup, where the key is the ID of the underlying crop, and the value is a model with these fields:
+
You can now add/edit [[Crops#Giant Crops|giant crops]] by editing the <samp>Data/GiantCrops</samp> data asset. This consists of a string → model lookup, where the key matches the <samp>ID</samp> and the value is a model with these fields:
    
{| class="wikitable"
 
{| class="wikitable"
Line 2,691: Line 2,691:  
|-
 
|-
 
| <samp>ID</samp>
 
| <samp>ID</samp>
| The unqualified item ID for the underlying crop. The giant crop has a chance of growing when there's a grid of fully-grown crops with this ID in a grid of <samp>TileSize</samp> tiles.
+
| The unqualified item ID produced by the underlying crop (''i.e.'' the [[Modding:Crop data|'index of harvest' field in <samp>Data/Crops</samp>]]). The giant crop has a chance of growing when there's a grid of fully-grown crops which produce this item ID in a grid of <samp>TileSize</samp> tiles.
 
|-
 
|-
 
| <samp>Texture</samp>
 
| <samp>Texture</samp>
translators
8,445

edits

Navigation menu