Jump to content

Changing the Loot Container expiration time.


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...