Jump to content

how to make containers self destroy after looting?


unlike them

Recommended Posts

<lootcontainer id="111" count="1" size="8,4" destroy_on_close="true" sound_open="UseActions/open_cardboard" sound_close="UseActions/close_cardboard" loot_quality_template="baseTemplate">

<item group="NewPlayerAll"/>

 

</lootcontainer>

 

 

Here you go

 

- - - Updated - - -

 

i am not sure if it works with everything, but look at loot container 34, which is right below the birds nest. This is the air drop container and it destroys.

I think the code you need is

destroy_on_close="true"

 

we were replying right about the same time lol sorry :D

Link to comment
Share on other sites

I just learned to do Xpaths mod, I don’t know if this is right.

I want to make it into an Xpaths mod

<configs>

<append xpath="/lootcontainers/lootprobtemplates/lootcontainer[@id=10]"><spectrum destroy_on_close="true"/></append>

<append xpath="/lootcontainers/lootprobtemplates/lootcontainer[@id=25]"><spectrum destroy_on_close="true"/></append>

</configs>

Link to comment
Share on other sites

Garbage dump and nest, the container will disappear after searching

 

<?xml version="1.0" encoding="utf-8"?>

<configs>

<remove xpath="/lootcontainers/lootcontainer[@id=10]" />

<remove xpath="/lootcontainers/lootcontainer[@id=25]" />

<append xpath="/lootcontainers">

<lootcontainer id="10" count="0,2" size="5,3" destroy_on_close="true" sound_open="UseActions/open_garbage" sound_close="UseActions/close_garbage" loot_quality_template="baseTemplate">

<item group="junk"/>

</lootcontainer>

<lootcontainer id="25" count="1,3" size="4,3" destroy_on_close="true" sound_open="UseActions/open_garbage" sound_close="UseActions/close_garbage" loot_quality_template="baseTemplate">

<item name="foodEgg" count="1" prob="0.25"/>

<item name="resourceFeather" count="4,8" prob="0.75"/>

</lootcontainer>

</append>

</configs>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...