Carlzilla Posted July 31, 2016 Share Posted July 31, 2016 Adds a container class that will automatically remove certain items from the player's inventory. This makes storing items in a neat and organized way nice and simple. I've set up 6 smart containers which are included in the mod, but you can easily add your own. The 6 containers are: * A Gun Safe for your guns * A Fridge for your cooked foods and meats * A cupboard for your canned/non-perishable foods * A medicine cabinet for your health/medicine items * An ammo storage crate for your bullets, arrows, and explosives * A raw materials crate for a lot of general raw materials If you want to add new containers, it's super easy to do. Simply clone the container you're looking to turn into a smart container in your blocks.xml (be sure to change the name and ID, obviously), then change the change the following line: <property name="Class" value="Loot" /> OR <property name="Class" value="SecureLoot" /> TO <property name="Class" value="SmartLoot, Mods" /> Once you have the class changed you need to add an ItemList to do this add the following property to the block: <property name="ItemList" value="item1,item2,item3...itemX,itemY,itemZ" /> item1, etc. should be replaced by the item or block name as defined in the items.xml or blocks.xml. That's all there is to setting one up. Download: https://www.mediafire.com/?rdpnl5dp3y02dol Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.