Jump to content

How do I add a replacement code in append


nioton6

Recommended Posts

I think you're looking for <set/>. This is used to change existing values in XML.

 

For example, in my ReducedGlue modlet, I change the required amount of bones needed to make glue with the following:

 

 

<set xpath="/recipes/recipe[@name='resourceGlue'][@craft_area='campfire']/ingredient[@name='resourceBone']/@count">5</set>
<set xpath="/recipes/recipe[@name='resourceGlue'][@craft_area='chemistryStation']/ingredient[@name='resourceBone']/@count">3</set>

Link to comment
Share on other sites

I think you're looking for <set/>. This is used to change existing values in XML.

 

For example, in my ReducedGlue modlet, I change the required amount of bones needed to make glue with the following:

 

 

<set xpath="/recipes/recipe[@name='resourceGlue'][@craft_area='campfire']/ingredient[@name='resourceBone']/@count">5</set>
<set xpath="/recipes/recipe[@name='resourceGlue'][@craft_area='chemistryStation']/ingredient[@name='resourceBone']/@count">3</set>

 

How do I do this with items with more than one crafting ingredient

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...