Jump to content

epigeios

Members
  • Posts

    1
  • Joined

epigeios's Achievements

Refugee

Refugee (1/15)

1

Reputation

  1. Something worth knowing, because I spent almost an hour trying to figure it out, is that the "or" and "and" commands can be a bit finicky. The example given has: property[@name=Magazine_items] or [@value=9mmBullet] I have not tested this to see if it works, but I'll assume it does. However, if you want to use "or" for different names, the syntax is actually different. It has to be like this instead: property[@name=Magazine_items' or @name='Another_name] Notice that now both names are inside the same bracket, and each is labeled with "@name". This does not work if the names are in separate brackets. As an example, I made a "mod" that returns an empty jar from boiled foods: <configs> <append xpath="/items/item[@name='foodBoiledMeat' or @name='foodCornBread' or @name='foodCornOnTheCob' or @name='foodVegetableStew' or @name='foodEggBoiled' or @name='foodBlueberryPie' or @name='foodHoboStew' or @name='foodMeatStew'] /property[@class='Action0']"> <property name="Create_item" value="drinkJarEmpty"/> </append> </configs>
×
×
  • Create New...