LHc_Biu Posted February 12, 2022 Share Posted February 12, 2022 I'm trying to make an MOD about arrows in the version A20.1. However, I don't know how to modify the parameters of Flaming Arrows to make them have the same effect as the molotov, hitting the ground to trigger the flame effect. Can anyone give me a hand or advice?🤔 Link to comment Share on other sites More sharing options...
Robeloto Posted February 13, 2022 Share Posted February 13, 2022 (edited) On 2/12/2022 at 11:31 AM, LHc_Biu said: I'm trying to make an MOD about arrows in the version A20.1. However, I don't know how to modify the parameters of Flaming Arrows to make them have the same effect as the molotov, hitting the ground to trigger the flame effect. Can anyone give me a hand or advice?🤔 add this into your items.xml <!-- add your custom arrows to the bows --> <append xpath="/items/item[@name='gunBowT0PrimitiveBow']/property[@class='Action0']"> <property name="Magazine_items" value="ammoArrowFlameExplosion,ammoArrowStone,ammoArrowIron,ammoArrowSteelAP,ammoArrowFlaming,ammoArrowExploding"/> </append> <append xpath="/items/item[@name='gunBowT1WoodenBow']/property[@class='Action0']"> <property name="Magazine_items" value="ammoArrowFlameExplosion,ammoArrowStone,ammoArrowIron,ammoArrowSteelAP,ammoArrowFlaming,ammoArrowExploding"/> </append> <append xpath="/items/item[@name='gunBowT3CompoundBow']/property[@class='Action0']"> <property name="Magazine_items" value="ammoArrowFlameExplosion,ammoArrowStone,ammoArrowIron,ammoArrowSteelAP,ammoArrowFlaming,ammoArrowExploding"/> </append> <append xpath="/items"> <item name="ammoArrowFlameExplosion"> <property name="Extends" value="ammoArrowIron"/> <property name="CustomIcon" value="ammoArrowFlaming"/> <property name="DisplayType" value="ammoArrowFlaming"/> <property name="Meshfile" value="#Other/Items?Weapons/Ranged/Bows/Arrows/arrow_flamingPrefab.prefab"/> <property name="HoldType" value="45"/> <property name="HandMeshfile" value="#Other/Items?Misc/sackPrefab.prefab"/> <property name="DropMeshfile" value="#Other/Items?Misc/sack_droppedPrefab.prefab"/> <property name="IsSticky" value="false"/> <property name="UsableUnderwater" value="false"/> <property name="EconomicValue" value="44"/> <property name="EconomicBundleSize" value="1"/> <property name="Damage_type" value="Heat"/> <property name="StickyOffset" value=".7"/> <property name="UnlockedBy" value="perkRangersFlamingArrows"/> <property class="Action1"> <property name="Gravity" value="-5"/> <property name="DamageBonus.wood" value="2"/> <property name="Explosion.ParticleIndex" value="10"/> <!-- molotov particle explosion --> <property name="Explosion.Buff" value="buffBurningMolotov"/> <!-- molotov explosion buff, so the fire will hurt you and zombies walking on the fire --> </property> <effect_group name="ammoArrowFlameExplosion" tiered="false"> <passive_effect name="EntityDamage" operation="base_set" value="28" tags="perkArchery"/> <passive_effect name="BlockDamage" operation="base_set" value="10" tags="perkArchery"/> <passive_effect name="DamageModifier" operation="perc_set" value=".2" tags="wood"/> <passive_effect name="DamageModifier" operation="perc_set" value="0" tags="earth,metal,cloth"/> <passive_effect name="ProjectileVelocity" operation="base_set" value="40" tags="perkArchery"/> <passive_effect name="ProjectileStickChance" operation="perc_set" value="0"/> <triggered_effect trigger="onProjectileImpact" action="ModifyCVar" target="other" cvar="$buffBurningFlamingArrowDuration" operation="set" value="14"> <requirement name="ProgressionLevel" progression_name="perkFiremansAlmanacMolotov" operation="Equals" value="0"/></triggered_effect> <triggered_effect trigger="onProjectileImpact" action="ModifyCVar" target="other" cvar="$buffBurningFlamingArrowDuration" operation="set" value="15"> <requirement name="ProgressionLevel" progression_name="perkFiremansAlmanacMolotov" operation="Equals" value="1"/></triggered_effect> <triggered_effect trigger="onProjectileImpact" action="AddBuff" target="other" buff="buffBurningFlamingArrow"/> <display_value name="dEntityDamageFire" value="135"/> <display_value name="dDuration" value="14"/> </effect_group> </item> Edit: fixed. This should work. Edited February 13, 2022 by Robeloto (see edit history) Link to comment Share on other sites More sharing options...
LHc_Biu Posted February 14, 2022 Author Share Posted February 14, 2022 21 hours ago, Robeloto said: 将此添加到您的items.xml 编辑:固定。这应该有效。 I couldn't have done it without you.😝 Link to comment Share on other sites More sharing options...
Robeloto Posted February 14, 2022 Share Posted February 14, 2022 49 minutes ago, LHc_Biu said: I couldn't have done it without you.😝 Haha, ure welcome! 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now