Changing the original files doesn't break the game, the only problem is MP Servers with EAC on, which will likely ban you. So at most turn EAC off thru the launcher and steer clear from that, then you're fine to experiment.
Though the simpler and cleaner way to do this is making a Modlet, same thing only the changes are read entirely in memory and don't mess with original files.
For that you want to create a folder in the 7daystodie/mods folder with the name of what your mod will be, and within in a file called mod.xml.
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<ModInfo>
<Name value="[color="#FFA500"]Here goes the name of the mod[/color]" />
<Description value="[color="#FFA500"]What it does[/color]" />
<Author value="[color="#FFA500"]aauthor name, you'll use this later[/color]" />
<Version value="[color="#FFA500"]1.0 or whatever version[/color]" />
</ModInfo>
</xml>
Something like this is the most basic content you can put in the mod.xml, then you can start modding itself.
Modlets need you to follow the structure pathing of the Data folder, you want to change a recipe so create a new folder inside your Modname folder called
config (to mimic where recipes.xml is located) and within it, a brand new recipes.xml
The thing you wanna change is:
<
ingredient name="unit_brass" count="2"/>
Compared to what you wrote:
<set xpath="/recipes"/recipe[@name=resourceBulletCasing]/
property[
@name="unit_brass"]/@count">1</set>
I'm showing you this in matching color to give you an idea of how the game likes to read things, what you're looking for here isn't a property but an ingredient.
That said there's a few things on how you wrote that whole thing.
First, recipes is quoted "recipes", it shouldn't be, the quotes are from start to end for the entire line.
Second, resourceBulletCasing and unit_brass are also quoted, that breaks the code too, you have to use single quotes like this
'resourceBulletCasing'
The finished recipe.xml file would look like.
Code:
<author name>
<set xpath="/recipes/recipe[@name='resourceBulletCasing']/ingredient[@name='unit_brass']/@count">1</set>
</author name>
You do that and save and bam, got yourself a modlet!
View attachment 31050