buddha743 Posted July 28 Share Posted July 28 (edited) This is (a21) This mod mainly affects loot harvesting /level 6 weapons/armor/tool production + high-speed robbery loot I don’t know anything about programming but I like it (YYPharmacy) (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> ============================================================================= My real main purpose is to modify a21 into the official version that can be used, but I just don’t know where there is an error. I can start the official version (YYPharmacy), but it has no effect. I hope God’s experts can help! YYPharmacy.rar Edited July 29 by buddha743 I don’t understand English very well and may not be able to express myself well, so I have to use a translator. Link to comment Share on other sites More sharing options...
Recommended Posts