Jump to content

Auto Farmer (variant of the Miner mod)


Recommended Posts

This is a modified version of the Miner mod found here https://7daystodie.com/forums/showthread.php?47379-Miner

Instead of materials harvested from the earth its crops. Its uses the same mechanics as the miner except is takes 5 fertilizer and an iron hoe to 'turn on' via the upgrade action.


By default this setup will allow you to 'grow' crops underground. Same as with the miner remove this line for it to only workoutside.

<property name="PlantGrowing.LightLevelGrow" value="0"/>



<block id="2032" name="FarmerProcessing">
		<property name="CustomIcon" value="cntCooler" />
		<property name="Material" value="metal" />
		<property name="Shape" value="Ext3dModel" />
		<property name="Mesh" value="models" />
		<property name="Model" value="LootContainers/cooler" param1="main_mesh" />
		<property name="Place" value="TowardsPlacerInverted" />
		<drop event="Destroy" count="0" />
		<property name="Class" value="PlantGrowing"/>
		<property name="PlantGrowing.FertileLevel" value="0"/>
           <property name="PlantGrowing.Next" value="Miner"/>
		<property name="PlantGrowing.GrowthRate" value="60"/>
		<property name="PlantGrowing.IsRandom" value="false"/>
           <property name="PlantGrowing.LightLevelStay" value="0"/>
           <property name="PlantGrowing.GrowIfAnythinOnTop" value="true"/>
           <property name="PlantGrowing.LightLevelGrow" value="0"/>
<block id="2033" name="Farmer">
		<property name="CustomIcon" value="cntCooler" />
		<property name="DescriptionKey" value="farmerDesc"/>
		<property name="Class" value="Loot" />
		<property name="LootList" value="102" />
		<property name="Material" value="metal" />
		<property name="Shape" value="Ext3dModel" />
		<property name="Mesh" value="models" />
		<property name="Model" value="LootContainers/cooler" param1="main_mesh" />
		<property name="Place" value="TowardsPlacerInverted" />
		<property name="HeatMapStrength" value="5"/>
		<property name="HeatMapTime" value="200"/>
		<property name="HeatMapFrequency" value="1"/>
		<property name="CanPickup" value="true"/>
		<drop event="Destroy" name="Farmer" count="1" />
		<property name="OnlySimpleRotations" value="true"/>
		<property class="UpgradeBlock">
		    	<property name="ToBlock" value="FarmerProcessing"/>
		    	<property name="Item" value="fertilizer"/>
		    	<property name="ItemCount" value="5"/>
		    	<property name="UpgradeHitCount" value="1"/>



<lootgroup name="farmerCorn" count="all">
       <item name="corn" count="10,50"/>
   <lootgroup name="farmerYucca" count="all">
       <item name="foodYuccaFruit" count="10,50"/>
   <lootgroup name="farmerPotato" count="all">
       <item name="potato" count="10,50"/>
   <lootgroup name="farmerBlueberries" count="all">
       <item name="blueberries" count="10,50"/>
   <lootgroup name="farmerMushrooms" count="all">
       <item name="mushrooms" count="10,50"/>
   <lootgroup name="farmerSnowberryPlant" count="all">
       <item name="snowberryPlant" count="10,50"/>
   <lootgroup name="farmerCoffeeBeans" count="all">
       <item name="coffeeBeans" count="10,50"/>
   <lootgroup name="farmerGoldenrodPlant" count="all">
       <item name="goldenrodPlant" count="10,50"/>
   <lootcontainer id="102" count="50,100" size="3,3" sound_open="UseActions/open_file_cabinet" sound_close="UseActions/close_file_cabinet">
<item group="farmerCorn" prob="0.7"/>
<item group="farmerYucca" prob="0.7"/>
<item group="farmerPotato" prob="0.5"/>
<item group="farmerBlueberries" prob="0.5"/>
<item group="farmerMushrooms" prob="0.5"/>
<item group="farmerSnowberryPlant" prob="0.5"/>
<item group="farmerCoffeeBeans" prob="0.5"/>
<item group="farmerGoldenrodPlant" prob="0.5"/>



<recipe name="Farmer" count="1" craft_area="workbench">
   <ingredient name="mechanicalParts" count="1"/>
   <ingredient name="smallEngine" count="1"/>
   <ingredient name="carBattery" count="1"/>
   <ingredient name="spring" count="5"/>
   <ingredient name="hoeIron" count="1"/>




farmerDesc,blocks,Station,,"Used to farm crops from the ground. It will grow the crops and be lootable after a day, it can then be refueled with 5 Fertilizer! (Use a garden hoe)",,

Link to comment
Share on other sites

i had this and the miner on my server. Miner works great this on the other hand turns into the miner once it is finish processing and gives me what the miner should needs fixed please. i read over it and dont understand why it is doing it.



Found the problem. This line needs to be changed


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


To This


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

Link to comment
Share on other sites

Yes, do what Heisenburg said...it needs to be updated to Farmer instead of Miner.


Also, if you don't want to have to use the hoe to upgrade the farmer (just want to use the fertilizer directly), in items.xml, fertilizer needs to be edited:


<item id="1325" name="fertilizer">
<property name="Meshfile" value="Items/Food/cornmealPrefab"/>
<property name="Material" value="MfertilizedFarmland"/>
<property name="HoldType" value="21"/>
<property name="Stacknumber" value="1000"/> <!-- STK resource -->
<property name="EconomicValue" value="15"/>
<property name="Group" value="Resources"/>
<property name="CraftingIngredientTime" value="2"/>
<property name="CraftingSkillGroup" value="craftSkillScience"/>
<property name="PickupJournalEntry" value="farmingTip"/>
[color="#FF0000"][b]	<property name="Degradation" value="200" param1="true" />
<property class="Action1">
	<property name="Class" value="Repair" />
	<property name="Delay" value="0.4" />
	<property name="Repair_amount" value="1" />
	<property name="Upgrade_hit_offset" value="0" />
	<property name="Sound_start" value="UseActions/repair_block" />
	<property name="Allowed_upgrade_items" value="fertilizer" />
</property> [/b][/color]


You can set the Degradation value to whatever you want...doesn't really matter.

Link to comment
Share on other sites

  • 1 year later...

Sorry, but I do not understand how to make it work, once I create the Farmer, where do I place it? what do I put in it? If I press "E" it opens but even after two days nothing happens, if I use another tool on it then it will not open anymore. :upset:

Thank you very much. :smile-new:

Link to comment
Share on other sites


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

  • Create New...