Le Barjack Posted July 16, 2021 Share Posted July 16, 2021 Hi, I am trying to change the expiration delay of the different LootContainers (originally 1200 s). I added an "entityclasses.xml" to a mod that contains the following line: <set xpath="/entity_class[starts-with(@name,'EntityLootContainer')]/property[@name='TimeStayAfterDeath']" name="value">1800</set> When I dump the config, the value of TimeStayAfterDeath is still at 1200 for the different EntityLootContainers. Can someone point me on what I did wrong? Thanks Link to comment Share on other sites More sharing options...
Telric Posted July 16, 2021 Share Posted July 16, 2021 1: you're missing the first root node (entity_classes) 2: you're using a setattribute style syntax for the end. It should be: <set xpath="/entity_classes/entity_class[starts-with(@name,'EntityLootContainer')]/property[@name='TimeStayAfterDeath']/@value">1800</set> changed items are in orange. Link to comment Share on other sites More sharing options...
Le Barjack Posted July 18, 2021 Author Share Posted July 18, 2021 Thanks a lot. It worked perfectly. I had to enclose it in a <configs/> root node, though. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now