Jump to content

Help, Editing Please (Grow time)


mrvash1987

Recommended Posts

I've not played around with it but would suggest blocks.xml and

 

<block id="119" name="cropsGrowingMaster">

<property name="IsDeveloper" value="true" />

<property name="CustomIcon" value="blueberrySeed" />

<property name="Material" value="plants" />

<property name="StabilitySupport" value="false" />

<property name="Shape" value="BillboardPlant" />

<property name="Mesh" value="grass" />

<property name="Texture" value="293" />

<property name="Collide" value="melee" />

<property name="IsTerrainDecoration" value="true" />

<property name="CanDecorateOnSlopes" value="true" />

<property name="RotationAllowed" value="pivotOnFloor" />

<property name="Class" value="PlantGrowing" />

<property name="PlantGrowing.Next" value="cropsHarvestableMaster" />

<property name="PlantGrowing.GrowthRate" value="63" />

<property name="PlantGrowing.FertileLevel" value="1" />

<property name="PlantGrowing.IsRandom" value="true" />

<drop event="Destroy" count="0" />

<property name="Group" value="Food/Cooking" />

<property name="EconomicValue" value="24" />

<property name="EconomicBundleSize" value="10" />

</block>

Link to comment
Share on other sites

  • 1 year later...
to add more to harvest based on time, you will need to add more blocks of the plant with a higher amount harvested, lets say every 20 mins or so it upgrades to another block (plant) with more harvest from it. Add as many upgraded plants as you would like to add.

 

 

 

like this? where I set the harvest time, as I'm playing 120min, it takes 240min to get ripe.

 

 

<block id="259" name="plantedPotato1">

<property name="Extends" value="cropsGrowingMaster"/>

<property name="CustomIcon" value="PotatoSeed"/>

<property name="Shape" value="ModelEntity"/>

<property name="Model" value="Entities/Plants/potato_plant_sproutPrefab"/>

<property name="Collide" value="melee"/>

<property name="Stacknumber" value="250"/>

<property name="PlantGrowing.Next" value="plantedPotato2"/>

<property class="UpgradeBlock">

<property name="ToBlock" value="plantedPotato2"/>

<property name="Item" value="Fertilizer"/>

<property name="ItemCount" value="1"/>

<property name="UpgradeHitCount" value="1"/>

</property>

<property name="Group" value="Food/Cooking"/>

<drop event="Destroy" name="plantedPotato1" count="1" tool_category="Harvest"/>

</block>

<block id="260" name="plantedPotato2">

<property name="Extends" value="cropsGrowingMaster"/>

<property name="CreativeMode" value="Dev"/>

<property name="Shape" value="ModelEntity"/>

<property name="Model" value="Entities/Plants/potato_plant_growthPrefab"/>

<property name="PlantGrowing.Next" value="plantedPotato3Harvest"/>

<property name="Collide" value="melee"/>

<drop event="Destroy" name="plantedPotato1" count="1" tool_category="Harvest"/>

</block>

<block id="261" name="plantedPotato3Harvest">

<property name="Extends" value="cropsHarvestableMaster"/>

<property name="Shape" value="ModelEntity"/>

<property name="Model" value="Entities/Plants/potato_plant_harvestPrefab"/>

<property name="Collide" value="melee"/>

<property name="DowngradeBlock" value="plantedPotato1"/>

<drop event="Harvest" name="potato" count="1" tool_category="Crops"/>

<drop event="Harvest" name="potato" count="1" prob="0.25" tool_category="Crops"/>

</block>

Link to comment
Share on other sites

Will this work? every 60 min = upgrade in the potato, 2 upgrade a total of 120min = 1 day in the game

 

<block id="259" name="plantedPotato1">

<property name="Extends" value="cropsGrowingMaster"/>

<property name="CustomIcon" value="PotatoSeed"/>

<property name="Shape" value="ModelEntity"/>

<property name="Model" value="Entities/Plants/potato_plant_sproutPrefab"/>

<property name="Collide" value="melee"/>

<property name="Stacknumber" value="250"/>

<property name="PlantGrowing.Next" value="plantedPotato2"/>

<property name="PlantGrowing.GrowthRate" value="60"/>

<property class="UpgradeBlock">

<property name="ToBlock" value="plantedPotato2"/>

<property name="Item" value="Fertilizer"/>

<property name="ItemCount" value="1"/>

<property name="UpgradeHitCount" value="1"/>

</property>

<property name="Group" value="Food/Cooking"/>

<drop event="Destroy" name="plantedPotato1" count="1" tool_category="Harvest"/>

</block>

<block id="260" name="plantedPotato2">

<property name="Extends" value="cropsGrowingMaster"/>

<property name="CreativeMode" value="Dev"/>

<property name="Shape" value="ModelEntity"/>

<property name="Model" value="Entities/Plants/potato_plant_growthPrefab"/>

<property name="PlantGrowing.Next" value="plantedPotato3Harvest"/>

<property name="PlantGrowing.GrowthRate" value="60"/>

<property name="Collide" value="melee"/>

<drop event="Destroy" name="plantedPotato1" count="1" tool_category="Harvest"/>

</block>

<block id="261" name="plantedPotato3Harvest">

<property name="Extends" value="cropsHarvestableMaster"/>

<property name="Shape" value="ModelEntity"/>

<property name="Model" value="Entities/Plants/potato_plant_harvestPrefab"/>

<property name="Collide" value="melee"/>

<property name="DowngradeBlock" value="plantedPotato1"/>

<drop event="Harvest" name="potato" count="1" tool_category="Crops"/>

<drop event="Harvest" name="potato" count="1" prob="0.25" tool_category="Crops"/>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...