Jump to content

Farming with fist!


ZzzSmileYzzZ

Recommended Posts

I've been working on Valmod farming system. I manage to make it work, so you can harvest with the fist and hoe and the seed stays there so no need to reseed. But the issue I got is that it don't take into account the soil. When you harvest the garden it is always the same amount that you get, only 1 crop. For example: if you pick up corn using the E key on fertile soil you get 5 corns but if you use the fist or hoe as I set it, it only collect 1 corn instead of 5.

 

The crops use a master CODE in the block.xml file:

 


<block id="120" name="cropsHarvestableMaster">
<property name="CreativeMode" value="None"/>
<property name="Material" value="plants"/>
<property name="LightOpacity" value="0"/>
<property name="StabilitySupport" value="false"/>
<property name="Shape" value="BillboardPlant"/>
<property name="Mesh" value="grass"/>
<property name="Texture" value="395"/>
<property name="MultiBlockDim" value="1,2,1"/>
<property name="ImposterDontBlock" value="true"/>
<property name="Collide" value="melee"/>
<property name="IsTerrainDecoration" value="true"/>
<property name="IsDecoration" value="true"/>
<property name="Class" value="CropsGrown"/>
<property name="PlantGrowing.FertileLevel" value="1"/>
<property name="CropsGrown.BonusHarvestDivisor" value="9"/>
<property name="HarvestOverdamage" value="false"/>
<drop event="Destroy" count="0"/>
<property name="DescriptionKey" value="plantsBlockGroupDesc"/>
</block>

 

And the harvest use this one:

 


<block id="258" name="plantedBlueberry3Harvest">
<property name="Extends" value="cropsHarvestableMaster"/>
<property name="Shape" value="ModelEntity"/>
<property name="Model" value="Entities/Plants/blueberry_plant_harvestPrefab"/>
	<drop event="Harvest" name="blueberries" count="1" tool_category="Pluck"/>
<property name="DowngradeBlock" value="plantedBlueberry1"/>
</block>

 

So what do I need to do, to make the change so it work properly?

 

Cheers,

Link to comment
Share on other sites

change items.xml

 

Hey :) i just checked Valmod xml and it seems you need to change the items.xml File.

 

<item id="70" name="handPlayer"> <!-- handPlayer must remain on ID 70 -->

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

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

<property name="HoldType" value="0"/>

<property class="Action0">

<property name="Delay" value="0.75"/>

<property name="Range" value="2.5"/>

<property name="DamageEntity" value="5"/>

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

<property name="Stamina_usage" value="3"/>

<property name="DamageBonus.head" value="2"/>

<property name="DamageBonus.organic" value="5"/>

<property name="ToolCategory.harvestingTools" value="1.5" param1="1"/>

<property name="ToolCategory.Pluck" value="1"/><!--Valmod-->

</property>

 

Last line should do the trick :) otherwise your hand is not able to harvest properly :)

Link to comment
Share on other sites

Hey :) i just checked Valmod xml and it seems you need to change the items.xml File.

 

<item id="70" name="handPlayer"> <!-- handPlayer must remain on ID 70 -->

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

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

<property name="HoldType" value="0"/>

<property class="Action0">

<property name="Delay" value="0.75"/>

<property name="Range" value="2.5"/>

<property name="DamageEntity" value="5"/>

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

<property name="Stamina_usage" value="3"/>

<property name="DamageBonus.head" value="2"/>

<property name="DamageBonus.organic" value="5"/>

<property name="ToolCategory.harvestingTools" value="1.5" param1="1"/>

<property name="ToolCategory.Pluck" value="1"/><!--Valmod-->

</property>

 

Last line should do the trick :) otherwise your hand is not able to harvest properly :)

 

I did that already also with the hoe. The problem is not that we can't harvest, is just that it don't harvest the right amount, according to the soil. Fertilize soil or not, it always harvest only 1 crop.

 

Cheers,

Link to comment
Share on other sites

@ZzzSmileYzzZ-

 

Unfortunately the mechanic that increases the crop yields is connected to the pressing "E" function not the tool or the block code and you cant make it work in the way you are trying to. I tried this before and after much work and investigating that was the conclusion. Sorry to be a bummer.

 

 

You can do a harvest increase through the skill system but it will not work the same as farming does. It will not take into account the soil only your level in said skill.

 

 

But....... you could make the fertilizer upgrade the plant to another plant that produces more. That combined with a skill increase with a skill may achieve the same game feel.

Link to comment
Share on other sites

Can you tell me how to do so Tin, or message me about it. I really like to make it work for the mod I'm working on. In meantime I will look at it and try to add it into the perks. But seeing a code example will help a lot.

 

Cheers,

 

Basically what Spider said.

The reason your not getting the correct amount as opposed to using the collect or 'E' is because you put your hand in the tool category to get the harvest, so now it's tied to your progressions.xml as well. You can alter your progression to give more of a harvest % but then you're going to mess with everything else that uses the same mechanic. I think?!? Jax made some a new primitive?! category, so you might wanna check out what he did, If you still want to pursue trying to make it work the way you want.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...