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

help fixing my mod plz

simple XML mod to craft more Gun Powder that it but it is not working plz help me fix it I'm new to this

169584352284041.png


 
Doesn't quite work that way. You have 2 options usually, either remove the vanilla recipe and append your new one with it set how you want, or to use xpath to edit certain bits of the vanilla recipe. The second option is almost always the better choice, but can be a little more work. Either way, use this to replace what you have there, but do leave the config bits at the top and bottom. This xpath is a tad more complicated due to the fact there is more than one recipe for gunpowder, but since you seem to want to change the chemistry station one, that's what I did.

<set xpath="/recipes/recipe[contains(@name, 'resourceGunPowder') and (contains(@craft_area, 'chemistryStation'))]/@count">8000</set>




I would recommend sphereii's thread on Xpath over in the Tutorials section to try and learn some of the basics as well.

 
Back
Top