Crops
crops.yml in plugins/MythicSeasons/ speeds up, slows down or stops vanilla plant growth in each season. /ms reload reads the file again.
- Whenever the file loads, the twelve shipped crops get back a missing
enabled: trueand a block for each loaded season that has none. So a deleted shipped crop comes back: setenabled: falseinstead. Crops you add are never filled in. - A YAML error prints
crops.yml could not be readand keeps the previous settings, or the shipped values after a server start.
How growth speed works
Each growth step follows the world's current season. Plants grow at vanilla speed:
- In worlds without a season, the Nether and the End, so
NETHER_WARTonly reacts in overworld-type worlds. - In chunks where a land plugin turns season effects off: WorldGuard
season-effectsdenied or apermanent-seasonnaming a loaded season, or GriefPreventionclaimed-areas.seasons-enabled: false. - For plants and seasons without an enabled entry.
Everywhere else:
- With
requires-constant-block-light: true, nothing grows while the block light above the growing position is belowlight-level. Daylight does not count. - The outdoor speed applies when the growing position sits directly on the highest block of its column (by the server's highest-block lookup), the indoor speed everywhere else.
The growing position is the plant itself for wheat, beetroots, carrots, potatoes, stems, cocoa, sweet berry bushes and nether wart, and the empty block where the new part appears for sugar cane, cactus, bamboo, melons and pumpkins. Speeds are not blended between seasons.
growth-speed |
Effect on each step |
|---|---|
0.0 or below |
Always cancelled. |
| above 0 and below 1 | Cancelled with a chance of 1 minus the value (0.8 skips 20 percent). |
1.0 |
Vanilla growth. |
| above 1 | The plant gains the whole part of the value in stages, plus one more with a chance equal to the decimals (1.2: 1 stage, 20 percent chance of 2). Never past the last stage. |
Plants without growth stages only react to values below 1, see Shipped crops.
Options
| Option | Default | What it does |
|---|---|---|
seasonal-growth-speed.enabled |
true |
Master switch. false leaves all growth vanilla. |
seasonal-growth-speed.<CROP> |
the twelve shipped crops | One block per plant, named after the plant block's material in upper case. |
<CROP>.enabled |
true for the shipped crops |
false keeps the plant vanilla. A crop you add is ignored without enabled: true. |
<CROP>.seasons.<season> |
spring, summer, fall, winter | One block (not a single value) per season id, any letter case, with the keys below. A season without a block gives vanilla growth. |
<season>.outdoor.growth-speed |
spring 1.2, summer 2.0, fall 0.8, winter 0.0 |
Speed multiplier outdoors. Missing inside a season block, it counts as 0 and growth stops. |
<season>.indoor.growth-speed |
summer 1.4, the others 1.0 |
Speed multiplier indoors. A missing key counts as 0. |
<season>.light.requires-constant-block-light |
winter true (false for NETHER_WART), the others false |
true: the plant only grows with enough block light (torches, lanterns, glowstone), indoors and outdoors. A missing key counts as false. |
<season>.light.light-level |
8 |
Block light needed while the light requirement is on, 0 to 15. Above 15, growth stops. A missing key counts as 0. |
- Use the plant block name, not the item:
BEETROOTS,CARROTSandPOTATOES. The item namesBEETROOT,CARROTandPOTATOload without a warning and never match. - Keep crop names in upper case: a lower-case
wheatblock gets an upper-caseWHEATblock with default values next to it, which wins. - A name that is not a material logs
crops.yml seasonal-growth-speed.<name> is not a known material, skipping it. A crop withoutseasonslogscrops.yml seasonal-growth-speed.<name> has no seasons block, skipping it. - A season you add later gets its blocks at the next start or reload: both speeds
1.0, no light requirement,light-level8.
Shipped crops
All twelve crops ship with the season values above.
| Crop | Above 1.0 | Below 1.0 |
|---|---|---|
WHEAT, BEETROOTS, CARROTS, POTATOES, COCOA, SWEET_BERRY_BUSH |
Extra stages | Growth steps are skipped |
MELON_STEM, PUMPKIN_STEM |
The stem gains stages, the fruit is not sped up | The stem skips steps and places fruit less often |
SUGAR_CANE, CACTUS |
No effect | New segments are skipped |
BAMBOO |
No effect | Spreading is skipped |
NETHER_WART |
Extra stages | Growth steps are skipped (on soul sand in overworld-type worlds only) |
Examples
seasonal-growth-speed:
SUGAR_CANE:
enabled: false
Goes inside the existing
SUGAR_CANEblock.
seasonal-growth-speed:
CARROTS:
seasons:
winter:
outdoor:
growth-speed: 0.25
indoor:
growth-speed: 1.0
light:
requires-constant-block-light: false
light-level: 8
Outdoor carrots skip three of four winter growth steps and need no torches.