Jump to content

Open Community  ·  61 members

7 Days To Die

How to modify the old style mod (a21) correctly


buddha743

Recommended Posts

This is (a21) This mod mainly affects loot harvesting /level 6 weapons/armor/tool production + high-speed robbery loot

(Config\buffs\)

<?xml version="1.0" encoding="utf-8"?>
<configs>

   <append xpath="buffs">
   
    <buff name="YYBlessing" name_key="YYPharmacy" description_key="YY blesses luck, 100 times drop rate, 10 times faster search, 5 times harvest, 6-grade manufacturing" remove_on_death="false" hidden="false" icon="YYBlessing">
    <stack_type value="ignore" />
    <duration value="0" /><!--YYTip: 0 means permanent duration -->
    <effect_group>
            <passive_effect name="HarvestCount" operation="perc_add" value="4" /><!--YYTip: Actual 5 times the harvest -->
            <passive_effect name="CraftingTier" operation="base_set" value="6" /><!--YYTip: 6th level manufacturing -->
            <passive_effect name="LootQuantity" operation="perc_add" value="9" /><!--YYTip: The actual profit is 10 times -->
            <passive_effect name="LootStage" operation="base_add" value="150"/><!--YYTip: The scraping stage is full when it is greater than 192 -->
            <passive_effect name="ScavengingTime" operation="perc_add" value="-0.99" /><!--YYTip: -1 means seconds to search -->
            <passive_effect name="LootDropProb" operation="perc_add" value="100"/><!--YYTip:base_setIt will cause an error message of no drop, and a red text will pop up. 100 means the drop rate is increased by 100 times. If the drop rate is 0.001, multiplied by 100 is 10%, so a 100-fold drop rate is not a 100% drop rate.
    </effect_group>
    </buff>
    
    </append>
</configs>

====================================================================================

(Config\items\)

<configs>
<append xpath="/items">
    <item name="YYPharmacy">
    <property name="CustomIcon" value="YYPharmacy"/>
    <property name="Extends" value="foodEgg"/>
    <property name="Stacknumber" value="1"/>
    <property class="Action0">
    <property name="Class" value="Eat"/>
    <property name="Delay" value=".5"/>
    <property name="Use_time" value=".1"/>
    <property name="Sound_start" value="player_eating"/>
    </property>
        <effect_group tiered="false">
        <triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="YYPharmacy"/>
        </effect_group>
    </item>
    </append>
</configs>

========================================================================

(Config\recipes\)

<configs>
    
     <append xpath="/recipes">
        
            <recipe name="YYPharmacy" count="1" craft_time = "0">
            <ingredient name="resourceWood" count="1"/>
        </recipe>
        
</append>
</configs>

==========================================================================

(ModInfo)

<?xml version="1.0" encoding="UTF-8" ?>
<xml>
    <Name value="YYPharmacy" />
    <DisplayName value="YYPharmacy" />
    <Version value="1.1" />
    <Description value="1" />
    <Author value="YYPharmacy" />
    
</xml>

=============================================================================

I successfully launched it in the game but it has no real effect. I don’t know what is wrong.

YYPharmacy.rar20240728180924_1.jpg.ee9b2c60df674d82269e95a7d168e2ee.jpg

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...