set xpath - Dinge hinzufügen - Add things
Verfasst: Dienstag 26. Oktober 2021, 13:11
In diesem Fall fügen wir die Kaffeemaschine hinzu die es normalerweise nicht als Rezept gibt.
In this case, we add the coffee maker that usually does not exist as a recipe.
recipes.xml
<configs>
<append xpath="/recipes">
Wir fügen an die Rezepte an
We add to the recipes
<recipe name="cntCoffeeMaker" count="1" craft_time="600" craft_area="workbench" tags="workbenchCrafting">
<ingredient name="resourceForgedIron" count="25"/>
<ingredient name="resourceElectricParts" count="50"/>
<ingredient name="resourceMechanicalParts" count="60"/>
<ingredient name="resourceScrapPolymers" count="70"/>
<ingredient name="resourceDuctTape" count="25"/>
</recipe>
Die Kaffeemaschine als Rezept für die Werkbank
The coffee maker as a recipe for the workbench
</append>
</configs>
Absatz schließen
Close paragraph
In this case, we add the coffee maker that usually does not exist as a recipe.
recipes.xml
Code: Alles auswählen
<configs>
<append xpath="/recipes">
<recipe name="cntCoffeeMaker" count="1" craft_time="600" craft_area="workbench" tags="workbenchCrafting">
<ingredient name="resourceForgedIron" count="25"/>
<ingredient name="resourceElectricParts" count="50"/>
<ingredient name="resourceMechanicalParts" count="60"/>
<ingredient name="resourceScrapPolymers" count="70"/>
<ingredient name="resourceDuctTape" count="25"/>
</recipe>
</append>
</configs>
<append xpath="/recipes">
Wir fügen an die Rezepte an
We add to the recipes
<recipe name="cntCoffeeMaker" count="1" craft_time="600" craft_area="workbench" tags="workbenchCrafting">
<ingredient name="resourceForgedIron" count="25"/>
<ingredient name="resourceElectricParts" count="50"/>
<ingredient name="resourceMechanicalParts" count="60"/>
<ingredient name="resourceScrapPolymers" count="70"/>
<ingredient name="resourceDuctTape" count="25"/>
</recipe>
Die Kaffeemaschine als Rezept für die Werkbank
The coffee maker as a recipe for the workbench
</append>
</configs>
Absatz schließen
Close paragraph