Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.
The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.
<append xpath="/items/item[@name='EACHTOOL']/effect_group[@name='Base Effects']"><passive_effect name="DamageModifier" operation="perc_add" value="VALUETOINCREASE" tags="TAGS"/></append>
<effect_group>
<requirement name="EntityTagCompare" target="other" tags="zombie"/>
<passive_effect name="EntityDamage" operation="perc_add" value="1"/>
</effect_group>
what is the range of the multiplier? can I set it to 10? will it cause that item to harvest 10x the amount or materials?and Items.xml harvest multipliers <property name="ToolCategory.Butcher" value="1" param1="1.9"/>, progression.xml harvest count
Yeah you will have to play with it and see Im not sure what the range is exactly but I am sure 10 would work. Harvesting in general is broken in the dll file. If that is set to 1 for eg and you deal the exact amount of damage to a block to destroy it you will get the exact specified amount of resources assigned for it to be harvested but however if you are even 1 hp over the block hp in damage when you destroy it you will get double the yield of what is specified on the block to be harvested. In order to get around this in my mod I have all those values set to 0.51, because what are the odds you will break a block by its exact hp, not very likely.what is the range of the multiplier? can I set it to 10? will it cause that item to harvest 10x the amount or materials?
Like I said...just add passive_effect HarvestCount to the items. You can use value="0.1" on the iron fireaxe for +10%, value="0.2" on the steel, etc. oreWoodHarvest covers digging too.I think the best option so far is to just go into blocks.xml and materials.xml to adjust what you get from each type of block it will take a long time but that's ok.
This was what I was looking for. Now all I have to do is create a modlet with this and I am ready to go. Thanks a lot.Add this to the items effect_group
<passive_effect name="HarvestCount" operation="perc_add" value="0.2" tags="oreWoodHarvest"/>
0.2 for example adds 20%.
I can't find HarvestCount in any of my filesLike I said...just add passive_effect HarvestCount to the items. You can use value="0.1" on the iron fireaxe for +10%, value="0.2" on the steel, etc. oreWoodHarvest covers digging too.
<effect_group name="Base Effects">
<passive_effect name="MaxRange" operation="base_set" value="2.9"/>
<passive_effect name="BlockRange" operation="base_set" value="3.5"/>
<passive_effect name="EntityDamage" operation="base_set" value="20"/> <!-- meleeToolFireaxeIron -->
<passive_effect name="BlockDamage" operation="base_set" value="30"/>
<passive_effect name="HarvestCount" operation="base_set" value=".35" tags="butcherHarvest"/>
<passive_effect name="DamageModifier" operation="perc_add" value="-.75" tags="stone"/>
<passive_effect name="DamageModifier" operation="perc_add" value="-.8" tags="earth"/>
<passive_effect name="DamageModifier" operation="perc_add" value="-.75" tags="metal"/>
<passive_effect name="AttacksPerMinute" operation="base_set" value="47"/>
<passive_effect name="StaminaLoss" operation="base_set" value="18" tags="primary"/>
<passive_effect name="DegradationMax" operation="base_set" value="200,800" tier="1,6"/>
<passive_effect name="ModSlots" operation="base_set" value="0,5" tier="1,6"/>
<passive_effect name="ModPowerBonus" operation="perc_add" value=".15" tags="EntityDamage,BlockDamage"/>
<passive_effect name="ModPowerBonus" operation="base_add" value="200" tags="EconomicValue"/>
</effect_group>
<passive_effect name="EntityDamage" operation="base_set" value="20"/> <!-- meleeToolFireaxeIron -->
<passive_effect name="BlockDamage" operation="base_set" value="30"/>
<passive_effect name="HarvestCount" operation="base_set" value=".35" tags="butcherHarvest"/>
[color="#FFA500"]<passive_effect name="HarvestCount" operation="perc_add" value="0.1" tags="oreWoodHarvest"/>[/color]
<passive_effect name="DamageModifier" operation="perc_add" value="-.75" tags="stone"/>
<append xpath="/items/item[starts-with(@name, 'meleeTool') and ends-with(@name, 'Iron')]/effect_group[@name='Base Effects']">
<passive_effect name="HarvestCount" operation="perc_add" value="0.1" tags="oreWoodHarvest"/>
</append>
<append xpath="/items/item[starts-with(@name, 'meleeTool') and ends-with(@name, 'Steel')]/effect_group[@name='Base Effects']">
<passive_effect name="HarvestCount" operation="perc_add" value="0.2" tags="oreWoodHarvest"/>
</append>
It's in the items.xml file. Just look at the tools entries and you can do it but don't use the ends-with as it gave me an error. I just named every tool I wanted to change and made the change.Where do I find effect group? Which file is it? I could do it if I knew![]()