• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Glue recipe

Gamer_62

New member
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>

 
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.

 
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

 
Last edited by a moderator:
Code:
<set xpath="/recipes/recipe[@name='resourceGlue' and @craft_tool='toolCookingPot']/ingredient[@name='resourceFemur']/@count">3</set>
 
Last edited by a moderator:
Yes thanks..i didn't see that...changed it but still no joy.

Need to learn and understand how mods are written now

 
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.

 
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?

 
Back
Top