# New farmable plants/seeds?

**URL:** https://discourse.cataclysmdda.org/t/new-farmable-plants-seeds/6188
**Category:** The Lab
**Created:** [May 20, 2014, 12:31am UTC](https://discourse.cataclysmdda.org/t/new-farmable-plants-seeds/6188 "2014-05-20T00:31:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Iituem](https://avatars.discourse-cdn.com/v4/letter/i/858c86/32.png) [@Iituem](https://discourse.cataclysmdda.org/u/Iituem)
#### Post date: [May 20, 2014, 12:31am UTC](https://discourse.cataclysmdda.org/t/new-farmable-plants-seeds/6188/1 "2014-05-20T00:31:08Z")

</div>

Working on a tailoring/wilderness survival mod, and I’ve got everything I need to make cotton a thing except… cotton. How would one go about creating cotton seeds that would respect the need to develop the cotton bud items when they were harvestable?

---

<div class="post-metadata">

### Author: ![kilozombie](https://avatars.discourse-cdn.com/v4/letter/k/e274bd/32.png) [@kilozombie](https://discourse.cataclysmdda.org/u/kilozombie)
#### Post date: [May 20, 2014, 1:28am UTC](https://discourse.cataclysmdda.org/t/new-farmable-plants-seeds/6188/2 "2014-05-20T01:28:10Z")

</div>

Well, as a replacement, you might be able to add a cotton ball item available by disassembling or finding in places that manufacture it (clothing stores maybe?). But if you want to make it farmable, you could

1. Figure out the current farming code
2. Add cotton bud spawns in farms, it’s in json so it should be simple

---

<div class="post-metadata">

### Author: ![Iituem](https://avatars.discourse-cdn.com/v4/letter/i/858c86/32.png) [@Iituem](https://discourse.cataclysmdda.org/u/Iituem)
#### Post date: [May 20, 2014, 7:42am UTC](https://discourse.cataclysmdda.org/t/new-farmable-plants-seeds/6188/3 "2014-05-20T07:42:34Z")

</div>

Already added them as an object to the “produce” and “hydro” item groups, so that should do for spawning them in farm maptiles. No idea how to even find the farming code that would allow me to get a seed item to grow into the desired item, though.

---

<div class="post-metadata">

### Author: ![Zireael](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zireael/32/956_2.png) [@Zireael](https://discourse.cataclysmdda.org/u/Zireael)
#### Post date: [May 20, 2014, 6:11pm UTC](https://discourse.cataclysmdda.org/t/new-farmable-plants-seeds/6188/4 "2014-05-20T18:11:26Z")

</div>

Still, making it harvestable would be a good idea.

---

<div class="post-metadata">

### Author: ![kilozombie](https://avatars.discourse-cdn.com/v4/letter/k/e274bd/32.png) [@kilozombie](https://discourse.cataclysmdda.org/u/kilozombie)
#### Post date: [May 20, 2014, 7:30pm UTC](https://discourse.cataclysmdda.org/t/new-farmable-plants-seeds/6188/5 "2014-05-20T19:30:03Z")

</div>

Farming code is probably going to be in the source. I seem to recall some one person working on it at a time? Can’t remember any names.

---

<div class="post-metadata">

### Author: ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)
#### Post date: [May 21, 2014, 1:27am UTC](https://discourse.cataclysmdda.org/t/new-farmable-plants-seeds/6188/6 "2014-05-21T01:27:39Z")

</div>

[Rivet is on the case](https://github.com/CleverRaven/Cataclysm-DDA/pull/7704).

---

<div class="post-metadata">

### Author: ![Iituem](https://avatars.discourse-cdn.com/v4/letter/i/858c86/32.png) [@Iituem](https://discourse.cataclysmdda.org/u/Iituem)
#### Post date: [May 21, 2014, 1:50am UTC](https://discourse.cataclysmdda.org/t/new-farmable-plants-seeds/6188/7 "2014-05-21T01:50:42Z")

</div>

Curses! Always I make a mod just in time to find someone else has already done it better. 😃 Ah well, I’ll post what I’ve got here once I’m finished testing anyway, what the hell.
