Jump to content

How do I remove a specific recipe in a custom recipe hierarchy?


Recommended Posts

There are two recipes for glue, one for the campfire and one for the chemistry station. My mod makes the chemistry station more rewarding since it is an advanced piece of equipment. Here is the original code that I have that works but it deletes the campfire glue instead of the chemistry station glue:

<remove xpath="/recipes/recipe[@name='resourceGlue']"></remove>
	<append xpath="/recipes">

	<recipe name="resourceGlue" count="3" craft_area="chemistryStation">
		<ingredient name="resourceFemur" count="1"/>
		<ingredient name="drinkJarRiverWater" count="1"/>
	</recipe>

	</append>

I know I'm close because the game gave me this message:

a1.thumb.jpg.b00bf4a3dfc828759ff89fa189ebe043.jpg

here is what i got to get that message:

<remove xpath="/recipes/recipe[@name='resourceGlue']/@count='1'/@craft_area='chemistryStation'"></remove>
	<append xpath="/recipes">

	<recipe name="resourceGlue" count="3" craft_area="chemistryStation">
		<ingredient name="resourceFemur" count="1"/>
		<ingredient name="drinkJarRiverWater" count="1"/>
	</recipe>

	</append>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...