Jump to content

Sarsante

Members
  • Posts

    39
  • Joined

Posts posted by Sarsante

  1. Is it possible to add something to localization.txt? maybe like

     

    <append xpath="">
    NEWITEMDesc,items,Tool,KgNone,random description.,,,,,
    </append>
    

     

    Ive another doubt although it's not a xpath one, but which property I add to give my new item a nickname? property DescriptionKey is the description tab text, which works when I manually edit localization. But I cant figure it out how to change the name, it shows the raw name in-game.

     

    Thanks

  2. Is it possible to use append to add one node after an existing one? I managed to do what I want using insertafter, but Im curious after I failed with append.

    original

    <recipe name="woodFrameBlock" count="1">
    <ingredient name="resourceWood" count="2"/>
    </recipe>
    

     

    lets say I want add another ingredient after wood. I feel it's possible to use append, but Im failing to point the right path I guess

     

    <append xpath="/recipes/recipe[@name='woodFrameBlock']/@recipe">
    <ingredient name="resourceNail" count="1"/>
    </append>
    

     

    This will add the code inside recipe node, so its not what I want. If I change to @ingredient, it will add to the wood node. so I tried /ingredient/ without @, because its not inside any of the existing nodes, but it doesnt work.

×
×
  • Create New...