victorious
New member
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"/>
Blocks.xml
Loot.xml
Recipes.xml
Localization.txt
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"/>
Blocks.xml
Code:
<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>
<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"/>
</property>
</block>
Code:
<lootgroup name="farmerCorn" count="all">
<item name="corn" count="10,50"/>
</lootgroup>
<lootgroup name="farmerYucca" count="all">
<item name="foodYuccaFruit" count="10,50"/>
</lootgroup>
<lootgroup name="farmerPotato" count="all">
<item name="potato" count="10,50"/>
</lootgroup>
<lootgroup name="farmerBlueberries" count="all">
<item name="blueberries" count="10,50"/>
</lootgroup>
<lootgroup name="farmerMushrooms" count="all">
<item name="mushrooms" count="10,50"/>
</lootgroup>
<lootgroup name="farmerSnowberryPlant" count="all">
<item name="snowberryPlant" count="10,50"/>
</lootgroup>
<lootgroup name="farmerCoffeeBeans" count="all">
<item name="coffeeBeans" count="10,50"/>
</lootgroup>
<lootgroup name="farmerGoldenrodPlant" count="all">
<item name="goldenrodPlant" count="10,50"/>
</lootgroup>
<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"/>
</lootcontainer>
Code:
<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"/>
</recipe>
Code:
Farmer,blocks,Station,,Farmer,,
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)",,
FarmerComplete,blocks,Station,,Farmer,,
Last edited by a moderator: