Noisy Pants Posted August 1, 2019 Share Posted August 1, 2019 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: 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 More sharing options...
Tete1805 Posted August 1, 2019 Share Posted August 1, 2019 You can also use set but targeted. <set xpath="/recipes/recipe[@name='resourceGlue' and @craft_area='chemistryStation']/@count">3</set> But I think you'll also get the idea if you want to remove / append. Link to comment Share on other sites More sharing options...
Noisy Pants Posted August 1, 2019 Author Share Posted August 1, 2019 You can also use set but targeted. <set xpath="/recipes/recipe[@name='resourceGlue' and @craft_area='chemistryStation']/@count">3</set> But I think you'll also get the idea if you want to remove / append. you are awesome!!! thank you very much!! Link to comment Share on other sites More sharing options...
Tete1805 Posted August 1, 2019 Share Posted August 1, 2019 Sure, anytime. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.