Gamer_62 Posted January 13, 2019 Share Posted January 13, 2019 How would i write this so it just adds 3 bones to the cooking pot and not the chemistry station <set xpath="/recipes/recipe[@name=resourceGlue]/ingredient[@name=resourceFemur]/@count">3</set> I did this but didnt work <set xpath="/recipes/recipe[@name=resourceGlue]/craft_tool(@name='toolCookingPot']/ingredient[@name=resourceFemur]/@count">3</set> Link to comment Share on other sites More sharing options...
stallionsden Posted January 13, 2019 Share Posted January 13, 2019 How would i write this so it just adds 3 bones to the cooking pot and not the chemistry station <set xpath="/recipes/recipe[@name=resourceGlue]/ingredient[@name=resourceFemur]/@count">3</set> I did this but didnt work <set xpath="/recipes/recipe[@name=resourceGlue]/craft_tool(@name='toolCookingPot']/ingredient[@name=resourceFemur]/@count">3</set> Try append not set. Link to comment Share on other sites More sharing options...
Gamer_62 Posted January 13, 2019 Author Share Posted January 13, 2019 Thanks for reply,but how would that be written out? </append> <set xpath="/recipes/recipe[@name=resourceGlue]/craft_tool(@name='toolCookingPot']/ingredient[@name=resourceFemur]/@count">3</set> </configs> this didnt work either Link to comment Share on other sites More sharing options...
scwanobi Posted January 13, 2019 Share Posted January 13, 2019 not sure if it is the main issue but it looks like you have ( instead of [ after craft_tool. Link to comment Share on other sites More sharing options...
stasis78 Posted January 13, 2019 Share Posted January 13, 2019 <set xpath="/recipes/recipe[@name='resourceGlue' and @craft_tool='toolCookingPot']/ingredient[@name='resourceFemur']/@count">3</set> Link to comment Share on other sites More sharing options...
Gamer_62 Posted January 13, 2019 Author Share Posted January 13, 2019 Yes thanks..i didn't see that...changed it but still no joy. Need to learn and understand how mods are written now Link to comment Share on other sites More sharing options...
Gamer_62 Posted January 13, 2019 Author Share Posted January 13, 2019 @ stasis78.....Thats it..thankyou so much and thanks everyone else for trying to help to Link to comment Share on other sites More sharing options...
stasis78 Posted January 13, 2019 Share Posted January 13, 2019 Welcome! Checkout my mod collection for many more examples LAME Mods Link to comment Share on other sites More sharing options...
stasis78 Posted January 13, 2019 Share Posted January 13, 2019 I highly recommend getting an xpath application to help debug xpath things. I use this on my Mac -> Pathology Its on the App Store and it is super cheap. The time I've saved using it alone is worth a few bucks. Link to comment Share on other sites More sharing options...
Gamer_62 Posted January 13, 2019 Author Share Posted January 13, 2019 Great mods just downloaded them and will defo do the same for app Thanks again Link to comment Share on other sites More sharing options...
stompbox108 Posted January 13, 2019 Share Posted January 13, 2019 hey I just want to clarify a couple things. I looked in recipes and there are two for making glue here is the one already there for the cooking pot <recipe name="resourceGlue" count="1" craft_area="campfire" craft_tool="toolCookingPot"> <ingredient name="resourceFemur" count="1"/> <ingredient name="drinkJarRiverWater" count="1"/> </recipe> So what are you trying to do? Do you want to change the ingredients? or are you trying to add another recipe? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.