π§¬Adding & Customizing Weed Strains
This guide explains how to add new weed strains or modify existing ones in the dynyx_weed
script. Each strain is fully customizableβname, props, growth time, harvest yield, required items, and more.
All strains are configured in:
Config.Plant = { ... }
π± Example Weed Strain Structure
Hereβs a breakdown of one strain block from the config:
['bluedream'] = {
label = 'Blue Dream Plant', -- Name shown to players
seed = 'seed_bluedream', -- Item used to plant this strain
baggie = 'bluedream_bag', -- Final sellable bag item
bud = 'bud_bluedream', -- Intermediate product from harvest
budMin = 5, -- Min buds per plant on harvest
budMax = 10, -- Max buds per plant on harvest
BudsForBag = 5, -- Buds required to make 1 bag
PlacingProgressBarDuration = 10, -- Seconds it takes to plant
RequirePot = true,
RemovePot = 1,
RequireShovel = true,
RemoveShovel = 0,
Props = {
[1] = `an_weed_blue_01_small_01a`, -- Stage 1 (small)
[2] = `an_weed_blue_med_01b`, -- Stage 2 (medium)
[3] = `an_weed_blue_lrg_01a` -- Stage 3 (fully grown)
}
}
β Adding a New Strain
1οΈβ£ Copy an existing block
Copy one of the strains inside Config.Plant
, like bluedream
.
2οΈβ£ Paste it below the others and change the key
Change ['bluedream']
to your custom ID:
['whitewidow'] = {
...
}
3οΈβ£ Update the internal values
Hereβs what you should change:
label
Display name shown to the player
seed
Item name required to plant
bud
Harvested item
baggie
Final processed item
budMin/budMax
Bud yield per plant
BudsForBag
How many buds are needed to craft a bag
Props
Stage-specific plant prop models (use custom weed props if desired)
π§ͺ Customization Tips
Use unique item names for seeds, buds, and bags to avoid overlap.
You can copy prop hashes from other strains or use custom MLO-compatible weed props.
Want an easier strain? Reduce
BudsForBag
to make fewer buds required.Want a rare/high-value strain? Increase
budMin/budMax
or require more planting items.
π§ Example Custom Strain
['whitewidow'] = {
label = 'White Widow',
seed = 'seed_whitewidow',
bud = 'bud_whitewidow',
baggie = 'whitewidow_bag',
budMin = 3,
budMax = 7,
BudsForBag = 4,
PlacingProgressBarDuration = 8,
RequirePot = true,
RemovePot = 1,
RequireShovel = true,
RemoveShovel = 0,
Props = {
[1] = `an_weed_white_01_small_01a`,
[2] = `an_weed_white_med_01b`,
[3] = `an_weed_white_lrg_01a`
}
}
Last updated