Changes

Jump to navigation Jump to search
→‎Custom crops: update for build 23254 (added PlantableLocationRules)
Line 438: Line 438:  
| <samp>IsPaddyCrop</samp>
 
| <samp>IsPaddyCrop</samp>
 
| ''(Optional)'' Whether this crop can be planted near water for a unique paddy dirt texture, faster growth time, and auto-watering. For example, [[Rice Shoot|rice]] and [[Taro Root|taro]] are paddy crops. Default false.
 
| ''(Optional)'' Whether this crop can be planted near water for a unique paddy dirt texture, faster growth time, and auto-watering. For example, [[Rice Shoot|rice]] and [[Taro Root|taro]] are paddy crops. Default false.
 +
|-
 +
| <samp>PlantableLocationRules</samp>
 +
| ''(Optional)'' The rules which override which locations the crop can be planted in, if applicable. The first matching rule is used. This only affects the location check, so it can't override more specific checks like crops needing to be planted in dirt.
 +
 +
This consists of a list of models with these fields:
 +
 +
{| class="wikitable"
 +
|-
 +
! field
 +
! effect
 +
|-
 +
| <samp>Id</samp>
 +
| A key which uniquely identifies this entry within the list. The ID should only contain alphanumeric/underscore/dot characters. For custom entries for vanilla items, this should be prefixed with your mod ID like <samp>Example.ModId_RuleId</samp>.
 +
|-
 +
| <samp>Result</samp>
 +
| Indicates whether the seed or sapling can be planted in a location if this entry is selected. The possible values are:
 +
* <samp>Default</samp>: the seed/sapling can be planted if the location normally allows it.
 +
* <samp>Allow</samp>: the seed/sapling can be planted here, regardless of whether the location normally allows it.
 +
* <samp>Deny</samp>: the seed/sapling can't be planted here, regardless of whether the location normally allows it.
 +
|-
 +
| <samp>Condition</samp>
 +
| ''(Optional)'' A [[#Game state queries|game state query]] which indicates whether this entry applies. Default true.
 +
|}
 
|-
 
|-
 
!colspan="2"| Harvest
 
!colspan="2"| Harvest
translators
8,445

edits

Navigation menu