Jump to content

Struggling with Append Command


Scyth

Recommended Posts

I'm working on a mod to debuff building and mining on our server - mostly so the molemen don't need to feel bad about hopping on grinding out while they are on a business meeting.

Unfortunately, I can't seem to get PlayerExpGain to work as an Append. If I edit the XML directly, it works just fine. If I try to do it properly, it doesn't work.
 

<!--Test Case Eliminate XP-->
<append xpath="items/item[starts-with(@name, 'meleeToolRepair']/effect_group[starts-with(@name, 'meleetoolRepair')]">
<effect_group>
	<passive_effect name="PlayerExpGain" operation="perc_add" value="-1" />
</effect_group>
</append>
Edited by Scyth (see edit history)
Link to comment
Share on other sites

Are you trying to add it as an effect_group within the existing effect_group? Because that's how the code reads. If it's just a single passive_effect you want to stick into the existing effect_group, remove the <effect_group> and </effect_group> lines.

 

My apologies if things have changed drastically in items.xml in alpha 20. I'm at work and only have the a19 configs to look at.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...