Sarsante
-
Posts
39 -
Joined
Content Type
Profiles
Forums
Store
Articles
A20 Bugs
A21 Bugs
Events
Posts posted by Sarsante
-
-
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
0 -
thanks man!
I thought Ive tried that, but maybe it didnt work because of a typo or something
edit: I guess I had a '/' at the end, to indicate its not inside recipe, who knows cant recall.
0 -
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.
0
XPath Modding Explanation Thread
in Tutorials & Guides
Posted
so its also impossible to add a name for a new item different than what you actually name it in items.xml?