7 Days to Die

7 Days to Die

View Stats:
question about loot in bookcases & creative mode
hi. so i'm using creative mode to make new commercial buildings like working stiff's tool's or shamway food's market.

i wanted to make a new library, so i placed bookstore bookcases pretty much like the ones found within the game, the problem is that no items will spawn in the bookcases, ever.

this doesn't happens with shamway food crates or working stiff crates which the loot respawns.

the bookcases are always empty, and i have yet to find how to enable the bookcases to automatically spawn books or any loot inside.

any ideas?
thanks in advance!
Last edited by 💗The Goddess💗; May 28, 2016 @ 7:01pm
< >
Showing 1-15 of 22 comments
Valmar May 28, 2016 @ 11:17pm 
Containers the player places will never spawn loot. You'd need to mod your files to be able to achieve what you're after. Which is simple enough to do, if interested.
Originally posted by Valmar:
Containers the player places will never spawn loot. You'd need to mod your files to be able to achieve what you're after. Which is simple enough to do, if interested.

oh, im very interested, could you please tell me what xml should i change in order to make bookcase & bookstorebookcase spawn items?

thanks you a lot, also i used your working lights mod on our server to enable those lights, looking awesome!

cheers!
Valmar May 29, 2016 @ 5:27am 
You need to make new blocks out of the ones you wish to use that will downgrade into the loot container you want. Basically. For example for a bookcase:

(Replace the XXXX with a block ID that isnt being used)

<block id="XXXX" name="Admin Bookcase">
<property name="CustomIcon" value="cntBookStoreBookcase" />
<property name="Material" value="wood_weak" />
<property name="Shape" value="Half" />
<property name="Texture" value="67,241,241,241,241,241" />
<property name="Place" value="TowardsPlacer90" />
<drop event="Destroy" count="0" />
<property name="DowngradeBlock" value="cntBookcase" />
</block>

<block id="XXXX" name="Admin Bookcase Store">
<property name="CustomIcon" value="cntBookStoreBookcase" />
<property name="Material" value="wood_weak" />
<property name="Shape" value="Half" />
<property name="Texture" value="67,241,241,241,241,241" />
<property name="Place" value="TowardsPlacer90" />
<drop event="Destroy" count="0" />
<property name="DowngradeBlock" value="cntBookStoreBookcase" />
</block>

Now you place this "admin bookcase" wherever you want then break it. When it breaks it will downgrade into a normal bookcase which will be lootable.
aww you're the best!.

can i bother you a little bit more, now that i got your attention lol, so thats how i can make functional cash registers or beverage coolers? id love to make those functional too, just to emulate 100% the original stores.

thanks again, i swear by god i've been searching on google, 7dtd forums (trough im not registered to post there but i always read the forums)

and couldnt find that answer
this is useful information, you should make it an sticky or a modpack with those things, like "store furniture pack"

that contains lootable fridges, cabinets, beverage coolers, cash registers, bookcases, etc.
Valmar May 29, 2016 @ 6:35am 
Probably because what you're after is mod related and you've been searching general sections, if I had to guess. I happen to be a modder so I happen to know this stuff - I'm guessing most don't. Anyway, you want cash registers and beverage coolers, yeah? Alright.

<block id="XXXX" name="Admin Cash Register">
<property name="CustomIcon" value="cntCashRegister" />
<property name="Material" value="MmetalNoGlue" />
<property name="MaxDamage" value="10" />
<property name="StabilitySupport" value="false" />
<property name="Shape" value="Ext3dModel" />
<property name="Mesh" value="models" />
<property name="Model" value="LootContainers/cash_register" param1="main_mesh" />
<drop event="Destroy" count="0" />
<property name="DowngradeBlock" value="cntCashRegister" />
</block>

<block id="XXXX" name="Admin Beer Cooler">
<property name="CustomIcon" value="cntBeerCooler" />
<property name="MaxDamage" value="10" />
<property name="Material" value="Mmetal_weak" />
<property name="Texture" value="191,191,190,191,191,191" />
<property name="Place" value="TowardsPlacer90" />
<drop event="Destroy" count="0" />
<property name="DowngradeBlock" value="cntBeerCooler" />
</block>

Those should do it.


As for a mod with those... I might make one at some point.
nice! thanks, i'm testing it right now, i've added the admin bookcases, when i break them they break into another case but it's also empty :o

nevermind, i started a brand new game and they work (singleplayer)

you're 100% right.. this needs to be modded in game, love it!!

now i need working cabinets and fridges, toilets and ill be all set up to fix things that get broken as the people plays on the server!!

thanks again for your help and for your time, extremely valuable!!

letme know if its ok to add you as friend, so in case of needing further information i can contact you.

cheers!
Last edited by 💗The Goddess💗; May 29, 2016 @ 6:57am
Valmar May 29, 2016 @ 6:54am 
Are you sure you're placing the right ones? They work fine for me. Also if you're using and Admin Tool to destroy them make sure you're not just breaking it so fast that you destroy both without realizing it.
it works! i just updated the last post :D
how about fridges? i did try to add this

but in-game its just a wooden block, that becomes wood upon damaging it lol

<block id="3000" name="cntFridgeadmin">
<property name="Class" value="Loot" />
<property name="Material" value="metal" />
<property name="Shape" value="ModelEntity" />
<property name="Texture" value="282" />
<property name="LootList" value="4" />
<property name="Model" value="Entities/LootContainers/fridgePrefab" />
<property name="DescriptionKey" value="refrigeratorGroupDesc"/>
<property class="RepairItems">
<property name="forgedIron" value="6" />
<property name="scrapCable" value="1" />
<property name="shortMetalPipe" value="2" />
</property>
<drop event="Harvest" name="scrapCable" count="1" tool_category="Disassemble" />
<drop event="Harvest" name="shortMetalPipe" count="1" tool_category="Disassemble" />
<drop event="Harvest" name="scrapIron" count="8" tool_category="Disassemble" />
<drop event="Destroy" name="scrapIron" count="2" prob="1" />
<drop event="Fall" name="scrapMetalPile" count="1" prob=".75" stick_chance="1" />
Valmar May 29, 2016 @ 7:52am 
There are only three important lines to remember. First off make sure the admin block doesnt have a loot class/lootlist. Because that would make it a container, thus this wouldnt work. Second make sure it has a downgradeblock event.

Remove
<property name="Class" value="Loot" />
<property name="LootList" value="67" />
Add
<property name="DowngradeBlock" value="cntToilet01" />

This is the most important line. It tells the block to downgrade into something else when destroyed. In the above example its a cntToilet01.

<block id="XXXX" name="Admin Toilet">
<property name="CustomIcon" value="cntToilet01" />
<property name="MaxDamage" value="50" />
<property name="Material" value="Mmetal_weak" />
<property name="StabilitySupport" value="false" />
<property name="Shape" value="Ext3dModel" />
<property name="Mesh" value="models" />
<property name="Texture" value="282" />
<property name="Model" value="Plumbing/toilet01" param1="main_mesh" />
<property name="DowngradeBlock" value="cntToilet01" />
<drop event="Destroy" count="0" />
</block>


<block id="XXXX" name="Admin Cabinet">
<property name="CustomIcon" value="cntCabinet" />
<property name="MaxDamage" value="50" />
<property name="Material" value="wood_weak" />
<property name="Texture" value="261,228,262,228,228,228" />
<property name="DowngradeBlock" value="cntCabinet" />
<drop event="Destroy" count="0" />
</block>

<block id="XXXX" name="Admin Fridge">
<property name="CustomIcon" value="cntFridge" />
<property name="MaxDamage" value="50" />
<property name="Material" value="metal" />
<property name="Shape" value="ModelEntity" />
<property name="Texture" value="282" />
<property name="Model" value="Entities/LootContainers/fridgePrefab" />
<property name="DowngradeBlock" value="cntFridge" />
<drop event="Destroy" count="0" />
</block>
hey again, awesome! thanks for the tips, and all the help/information you gave me, cant thank you enough for it.

letme know if i can add you, i promise im not going to bother you, ill just contact you just in case i need information. if not then it's fine.

ty again!
Valmar May 29, 2016 @ 8:14am 
Funny, I thought I said sure already. Though I dont see it in my posts. I must had accidentally wrote over it or something. Anyway, sure, you can add me.
Originally posted by Valmar:
Since you showed interest in something like this:

https://7daystodie.com/forums/showthread.php?41961-Mod-Resource-User-Placable-Lootable-Containers&p=440410#post440410

nice work, very usefull! don't know if you included them, but there are also those blue and red backpacks, the purse, sports bag, duffel bags, oh and the cars, that may contain random loot

trash bags, foul trash, and can't remember the other one, i modded in the first 2 backpacks and they spawn loot. ^^

ty again!
Last edited by 💗The Goddess💗; May 30, 2016 @ 6:29am
< >
Showing 1-15 of 22 comments
Per page: 1530 50

Date Posted: May 28, 2016 @ 6:57pm
Posts: 22