I'm pretty sure you need to have the DamageEntity and DamageBlock under a action0 property. I think there was a minor syntax mistake with the extend function as well. This should work (theoretically):Ok. ran into another snag. I don't know why I am getting an error on the items.xml.
Error:
2020-02-27T09:40:16 29.777 EXC Attribute 'material' missing on item 'meleeHandAnimalBabyBoar'
Exception: Attribute 'material' missing on item 'meleeHandAnimalBabyBoar'
at ItemClassesFromXml.parseItem (System.Xml.XmlElement _node) [0x003c1] in <abc1cae220c641248ccf17f83a8861d4>:0
at ItemClassesFromXml+<CreateItems>d__1.MoveNext () [0x0014e] in <abc1cae220c641248ccf17f83a8861d4>:0
at ThreadManager+<CoroutineWrapperWithExceptionCallba ck>d__40.MoveNext () [0x00044] in <abc1cae220c641248ccf17f83a8861d4>:0
Items.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<configs>
<append xpath="/items">
<!-- Baby Boar Damage -->
<item name="meleeHandAnimalBabyBoar" extends="meleeHandAnimalWolf">
<property name="DamageEntity" value="10"/>
<property name="DamageBlock" value="12"/>
</item>
</append>
</configs>
All I want to do is change the damage done. I thought this would give me all of the properties of meleeHandAnimalWolf, but change those 2 properties to what I want.
Again, any help appreciated.
<configs>
<append xpath="/items">
<!-- Baby Boar Damage -->
<item name="meleeHandAnimalBabyBoar">
<property name="Extends" value="meleeHandAnimalWolf"/>
<property class="Action0">
<property name="DamageEntity" value="10"/>
<property name="DamageBlock" value="12"/>
</property>
</item>
</append>
</configs>
Forgot to remove the / at the end of the first line, I think. Try this:hmm... nope. getting a different error with your code.
error is now:
2020-02-27T10:12:24 20.378 ERR XML loader: Loading XML patch file 'items.xml' from mod 'IceBurg - Baby Animals' failed:
2020-02-27T10:12:24 20.379 EXC The 'append' start tag on line 4 position 2 does not match the end tag of 'item'. Line 11, position 3.
XmlException: The 'append' start tag on line 4 position 2 does not match the end tag of 'item'. Line 11, position 3.
items.xml:
<?xml version="1.0" encoding="UTF-8"?>
<configs>
<append xpath="/items">
<item name="meleeHandAnimalBabyBoar" extends="meleeHandAnimalWolf"/>
<property class="Action0">
<property name="DamageEntity" value="10"/>
<property name="DamageBlock" value="12"/>
</property>
</item>
</append>
</configs>
<configs>
<append xpath="/items">
<item name="meleeHandAnimalBabyBoar" extends="meleeHandAnimalWolf">
<property class="Action0">
<property name="DamageEntity" value="10"/>
<property name="DamageBlock" value="12"/>
</property>
</item>
</append>
</configs>