Hey Peeps. For the mod I am working on, I want to have the ability to grow trees hydroponically. I have created a new tree that when planted into my new growing basin, the grower automatically harvests . I have looked at the Core Plant Def and other growing mods to see if my code is wrong. I can't seem to find anything that would make growers do this prior to the tree being fully grown. Any help is GREATLY appreciated.
P.S. - I know I have been posting a lot lately, and Thanks to Everyone for all their help. I am in the final stages of releasing "Alchemy and Black Magic" mod...well first phase anyway. This mod is focused on pure Neolithic/Medieval builds. Thus the reason for ALL of my postings.
<?xml version="1.0" encoding="utf-8"?>
<Plants>
<ThingDef ParentName="TreeBase">
<defName>PlantElm</defName>
<label>Elm Tree</label>
<description>An-elm tree. tall and beautiful.</description>
<statBases>
<MaxHitPoints>150</MaxHitPoints>
<Beauty>5</Beauty>
</statBases>
<graphicData>
<texPath>Things/Plant/ElmTree</texPath>
<graphicClass>Graphic_Random</graphicClass>
<shadowData>
<volume>(0.15, 0.3, 0.1)</volume>
</shadowData>
</graphicData>
<selectable>true</selectable>
<pathCost>10</pathCost>
<plant>
<fertilitySensitivity>1.0</fertilitySensitivity>
<dieIfLeafless>false</dieIfLeafless>
<reproduces>false</reproduces>
<harvestTag>Standard</harvestTag>
<harvestedThingDef>WoodLog</harvestedThingDef>
<harvestDestroys>true</harvestDestroys>
<harvestYield>30</harvestYield>
<sowTags>
<li>Ground</li>
<li>Hydroponic</li>
</sowTags>
<topWindExposure>0.2</topWindExposure>
<growDays>20.0</growDays>
</plant>
</ThingDef>
</Plants>
Trees block planting in adjacent cells.
1) a grower plants the first tree in hydroponic basin.
2) he then logically decides to plant a tree in the adjacent free hydroponic cell.
3) he starts by cutting the first tree which is blocking! ;D
You must set the "blocksAdjacentPlanting" tag to false in your tree def.
Quote from: Rikiki on February 09, 2017, 01:56:37 PM
Trees block planting in adjacent cells.
1) a grower plants the first tree in hydroponic basin.
2) he then logically decides to plant a tree in the adjacent free hydroponic cell.
3) he starts by cutting the first tree which is blocking! ;D
You must set the "blocksAdjacentPlanting" tag to false in your tree def.
Awesome! Thanks! Great explanation too!
Quote from: Rikiki on February 09, 2017, 01:56:37 PM
You must set the "blocksAdjacentPlanting" tag to false in your tree def.
This string threw errors, so I figured it had updated for A16.
The proper string for A16 is <blockAdjacentSow>false</blockAdjacentSow>
You definitely sent me on the RIGHT PATH, just needed to get the right string, which was easy. Thanks Again Rikiki!