Skip to content

Commit c1bd727

Browse files
committed
Add missing infos
1 parent 8e8a24c commit c1bd727

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

pages/it-drugs/adjustments/plants.mdx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description: Now we can look at the configuration of the individual plants.
55

66

77
import { Callout } from '@components/Callout'
8+
import ExternLink from '@components/ExternLink'
89
import Accordion from '@components/Accordion'
910
import AccordionGroup from '@components/AccordionGroup'
1011

@@ -88,7 +89,7 @@ This value is then subtracted from or added to the z-coordinate of the plant.
8889
label = 'Lemon Haze', -- Label for the plant
8990
plantType = 'plant1', -- Choose plant types from (plant1, plant2, small_plant)
9091
growthTime = false, -- Cutsom growth time in minutes false if you want to use the global growth time
91-
onlyZone = false, -- Set to zone id if you want to plant this seed only in a specific zone
92+
onlyZone = false, -- Set to true if you want to plant this seed only in specific zones
9293
zones = {'weed_zone_one', 'weed_zone_two'}, -- Zones where the seed can be planted
9394
products = { -- Item the plant is going to produce when harvested with the max amount
9495
['weed_lemonhaze'] = {min = 1, max = 4},
@@ -131,6 +132,17 @@ The plant type is defined here; you can choose from any of the types defined in
131132

132133
---
133134

135+
```lua
136+
onlyZone = false, -- Set to true if you want to plant this seed only in specific zones
137+
zones = {'weed_zone_one', 'weed_zone_two'}, -- Zones where the seed can be planted
138+
```
139+
If `onlyZones` is **true**, the seed can only be planted in the specified `zones` in `zones`. The id of each previously created zone can be entered in the `zones` list
140+
<ExternLink
141+
href="https://docs.it-scripts.com/it-drugs/adjustments/zones"
142+
/>
143+
144+
---
145+
134146
```lua
135147
products = {
136148
['weed_lemonhaze'] = {min = 1, max = 4},

pages/it-drugs/adjustments/zones.mdx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ Here, it is possible to create zones that can have an effect on the growth speed
2121
## Config.GlobalGrowTime
2222
This variable defines the growth rate in minutes for the plants and is taken as the base value for all future modifications.
2323

24-
## Config.OnlyZones
25-
<Callout type="warning">
26-
**Deprecated:** From version **1.3.0** you can make this setting for each plant individually
27-
</Callout>
28-
2924
To use the different zone settings, this variable must be set to true.
3025
As long as it is set to false, any modification in the zones will not be used.
3126

0 commit comments

Comments
 (0)