Vayben Posted January 1 Share Posted January 1 (edited) Well, I added the following in an items.xml to make a mod that allows acid to be recovered from car batteries. However when i try to "Open" the battery it will not give the items listed. Any help would be appreciated. <configs> <append xpath="/items/item[@name='carBattery']"> <property class="Action0"> <property name="Class" value="OpenBundle"/> <property name="Delay" value="0"/> <property name="Use_time" value="0"/> <property name="Create_item" value="resourceAcid,resourceScrapLead,resourceScrapPolymers"/> <property name="Create_item_count" value="1,90,5"/> </property> </append> </configs> I just made a recipe to do the conversion to 1 acid for now, but I would really like to have it use the above game mechanics. Thanks to anyone responding. Edited January 1 by Vayben (see edit history) Link to comment Share on other sites More sharing options...
BFT2020 Posted January 1 Share Posted January 1 You need to make it a bundle. Find the bundle template in the items file and extend from it for the car battery Link to comment Share on other sites More sharing options...
BFT2020 Posted January 2 Share Posted January 2 Thinking more about this, you might get an issue if you change the car battery itself to a bundle since it is used in crafting recipes and as a power source in battery banks. What you might want to do is to create a new recipe so that you can disassemble (craft) it into a new bundle package (for example car battery bundle) that opens up to the components you want. Link to comment Share on other sites More sharing options...
Vayben Posted January 2 Author Share Posted January 2 (edited) 3 hours ago, BFT2020 said: Thinking more about this, you might get an issue if you change the car battery itself to a bundle since it is used in crafting recipes and as a power source in battery banks. What you might want to do is to create a new recipe so that you can disassemble (craft) it into a new bundle package (for example car battery bundle) that opens up to the components you want. Worked perfectly... thanks! https://www.nexusmods.com/7daystodie/mods/4120 Edited January 2 by Vayben (see edit history) 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