# Craft Crate (containing Items)

**URL:** <https://forums.unrealengine.com/t/craft-crate-containing-items/44464>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [October 12, 2015, 6:40pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464 "2015-10-12T18:40:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubCUT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dubcut/32/549118_2.png) [@dubCUT](https://forums.unrealengine.com/u/dubCUT)\
**Post date:** [October 12, 2015, 6:40pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/1 "2015-10-12T18:40:37Z")

</div>

How to:  
a craftable Crate with items inside.

I know this has been discussed. But there are some open questions, inclucing a fully working version 😉

1st:  
‘Event begin play’ executes the ‘default inventory’ well. the items are inside the crafted crate.

2nd:  
none of the other Events seem to work, as the items do not respawn on eighter pressing E or checking the inventory.

3rd:  
it seems impossible to Override the Quantity or Stack Size of Items Spawned.  
If you spawn a Thatch Roof you’ll get 1 Item, if you spawn Gasoline you’ll get 5 Gasoline Items.  
Is it possible to overall override that variable (Quantity and Stacksize) which comes from their original BP?

 ![spawnbox1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/b/db10df29fef7dd8337a3dbf636ae80c5708b5aad.jpeg)

4th:  
what is the issue having a negative number in ‘Slots’?

![inv.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/5/35caf6ac2cc22ddd20e77bc78959b3a181808d5b.jpeg)

settings:

 ![settings.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/b/eb5a4c7255773c745dffe00a3d6984181c1592b8.jpeg)

---

<div class="post-metadata">

**Author:** ![dubCUT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dubcut/32/549118_2.png) [@dubCUT](https://forums.unrealengine.com/u/dubCUT)\
**Post date:** [October 14, 2015, 7:09am UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/2 "2015-10-14T07:09:14Z")

</div>

no one? really?

---

<div class="post-metadata">

**Author:** ![anon16009780](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon16009780](https://forums.unrealengine.com/u/anon16009780)\
**Post date:** [October 15, 2015, 9:31am UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/3 "2015-10-15T09:31:55Z")

</div>

I’ve been actually trying to get what your doing here to work in a different way (selling and buying \*\*\*\*) for weeks and haven’t had much luck

---

<div class="post-metadata">

**Author:** ![dubCUT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dubcut/32/549118_2.png) [@dubCUT](https://forums.unrealengine.com/u/dubCUT)\
**Post date:** [October 19, 2015, 7:38am UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/4 "2015-10-19T07:38:14Z")

</div>

so isn’t this possible at all? it’s not that big of a thing…😕

---

<div class="post-metadata">

**Author:** ![anon16009780](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon16009780](https://forums.unrealengine.com/u/anon16009780)\
**Post date:** [October 19, 2015, 3:00pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/5 "2015-10-19T15:00:15Z")

</div>

Hey, did you put in a text thing to see if your begin play is even working?

I found that you usually have to put delay .2 in after it for anything to actually work.

Also, if you use the create item function you can then edit the value (quantity)

---

<div class="post-metadata">

**Author:** ![DoctorDiscord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DoctorDiscord](https://forums.unrealengine.com/u/DoctorDiscord)\
**Post date:** [October 19, 2015, 6:23pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/6 "2015-10-19T18:23:06Z")

</div>

The Neg number is from the “default engrams” not matching the the “default inventory items” in the inventory

---

<div class="post-metadata">

**Author:** ![dubCUT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dubcut/32/549118_2.png) [@dubCUT](https://forums.unrealengine.com/u/dubCUT)\
**Post date:** [October 20, 2015, 1:43pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/7 "2015-10-20T13:43:16Z")

</div>

hi guys  
thanks for your time!

@Davetiger

> [@](#):
>
> if your begin play is even working

the on play event is working, yes. but none of the interactive ones… that’s ok for now. EDIT: i forgot to [enable input](https://docs.unrealengine.com/latest/INT/Engine/Blueprints/BP_HowTo/MakingFunctions/index.html)…

> [@](#):
>
> use the create item function

that would be so great! i can NOT find this function. i searched the right click box in the graph of the object BP and inventory BP. Neighter in the event graph, nor in the construction script.  
where would i find this problem solving function???

@DoctorDiscord  
ok. thank you!

---

<div class="post-metadata">

**Author:** ![anon16009780](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon16009780](https://forums.unrealengine.com/u/anon16009780)\
**Post date:** [October 21, 2015, 4:38pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/8 "2015-10-21T16:38:04Z")

</div>

it’s under turn off context sensitive

I’m in a container (the smithy)

---

<div class="post-metadata">

**Author:** ![DragonSlay\_r](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DragonSlay\_r](https://forums.unrealengine.com/u/DragonSlay_r)\
**Post date:** [October 21, 2015, 5:27pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/9 "2015-10-21T17:27:37Z")

</div>

Just try this.

 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/0/e09f544bf5ed47ca39f5dfb5769aef3d6ea2be3f.png)  
 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/7/3a7904f8d275e3a15c4a66ae63c5d3ef09fe1977.png)

---

<div class="post-metadata">

**Author:** ![dubCUT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dubcut/32/549118_2.png) [@dubCUT](https://forums.unrealengine.com/u/dubCUT)\
**Post date:** [October 22, 2015, 1:05pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/10 "2015-10-22T13:05:32Z")

</div>

@Davetiger:  
thank you that seems very promising. it is possible to set Quantity like that! but i could not add a second item class. i thought i could just chain these “new item” nodes, but it only considers the first one.  
@Nav0081:  
that’s exactly what i do in my first screenshot. it works, but it is VERY uncomfortable if you want to have a stack of 100 items per class…

 ![ADDITEM.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/4/34b2fe6820244b0a974b69bd0aa6c9c875a34235.jpeg)

---

<div class="post-metadata">

**Author:** ![CFrankie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CFrankie](https://forums.unrealengine.com/u/CFrankie)\
**Post date:** [October 23, 2015, 8:11pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/12 "2015-10-23T20:11:29Z")

</div>

Let me help you figure this out - it’s not possible. The current way inventory works - you can’t have inventory INSIDE inventory. The item in your “inventory” is not an actual structure. So it doesn’t hold anything. You’re working in a task of futility. Anything you pick up will turn into just a picture in your inventory. It’s the limitation of the Developer Design of inventory. I’d love to have crafted a tiny box I could store things in while it’s IN my inventory, but alas - it’s not going to happen. At least not yet. Not the way we’d approach it normally.

---

<div class="post-metadata">

**Author:** ![hogscraper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hogscraper](https://forums.unrealengine.com/u/hogscraper)\
**Post date:** [October 24, 2015, 6:33am UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/13 "2015-10-24T06:33:00Z")

</div>

Not exactly sure what you’re saying at the top. You want a spawnable crate with whatever you specify inside but need to do it in code? I do this for my castle mod and have a test box that I can spawn via admin command that has 4-5 of everything in my mod. Doing it this way means that each item you add to that array equals 1 item. For a stack of ten somethings you will need ten entries for that item. You don’t need an additional engram entry just add an additional structure entry for the boxbp and you can spawn them without players having access or you can use the engram like normal. You can copy and paste the storage box to do this. You can pretty much add an inventory to anything and put whatever you want inside when it spawn using that Default Inventory. I made random care packages spawn on my test server doing something like this.

![3897d88615bfb52eb220c7693ba9e379c7dc2a18.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

 ![box2.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/f/8fcc292fa855898a3a85e3741fb5336893c1979b.jpeg)

---

<div class="post-metadata">

**Author:** ![CFrankie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CFrankie](https://forums.unrealengine.com/u/CFrankie)\
**Post date:** [October 24, 2015, 8:49pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/14 "2015-10-24T20:49:35Z")

</div>

Ok, yeah you can craft an item with specifics like that and force spawn it into the world at least. 🙂

---

<div class="post-metadata">

**Author:** ![Shadow78600](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadow78600](https://forums.unrealengine.com/u/Shadow78600)\
**Post date:** [November 1, 2015, 4:12pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/15 "2015-11-01T16:12:25Z")

</div>

Hi guys, where i can change the item quality inside the storage box and when i add ammo, the default are 10 ammo, how do i change it to another value ? thanks

---

<div class="post-metadata">

**Author:** ![dubCUT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dubcut/32/549118_2.png) [@dubCUT](https://forums.unrealengine.com/u/dubCUT)\
**Post date:** [November 3, 2015, 9:07am UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/16 "2015-11-03T09:07:34Z")

</div>

it looks kind of silly, but this worked for me:  
setting item quantity and quality.  
 ![2b501bd67bc1af1983bdac88336d12c4ef466d4b.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)  
Downside is, items are added every time you start the game…

---

<div class="post-metadata">

**Author:** ![anon16009780](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon16009780](https://forums.unrealengine.com/u/anon16009780)\
**Post date:** [November 20, 2015, 4:13pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/17 "2015-11-20T16:13:27Z")

</div>

if you use the begin play on a container it only runs when the container is placed 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c7a084dc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c7a084dc](https://forums.unrealengine.com/u/anonymous_user_c7a084dc)\
**Post date:** [November 20, 2015, 4:55pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/18 "2015-11-20T16:55:19Z")

</div>

This is way out of my league but it’s still really cool.

---

<div class="post-metadata">

**Author:** ![WoefulMacabre](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WoefulMacabre](https://forums.unrealengine.com/u/WoefulMacabre)\
**Post date:** [November 20, 2015, 9:03pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/19 "2015-11-20T21:03:26Z")

</div>

> [@Davetiger;423491](#):
>
> if you use the begin play on a container it only runs when the container is placed 🙂

I don’t know if that’s entirely true. It’s been said a couple of times EBP runs on load, as well. I don’t know for certain though.

-WM

---

<div class="post-metadata">

**Author:** ![dubCUT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dubcut/32/549118_2.png) [@dubCUT](https://forums.unrealengine.com/u/dubCUT)\
**Post date:** [November 21, 2015, 6:19pm UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/20 "2015-11-21T18:19:44Z")

</div>

> [@](#):
>
> if you use the begin play on a container it only runs when the container is placed

all i can say is: the way i use the begin play event in the screenshot a few posts earlier, makes the event run everytime the game is started.

It would be GREAT to have an event which is only called when the structure is placed…  
i saw a “do once” node in the graph, but did not have any luck with it.

---

<div class="post-metadata">

**Author:** ![P0k3r](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@P0k3r](https://forums.unrealengine.com/u/P0k3r)\
**Post date:** [March 15, 2016, 12:00am UTC](https://forums.unrealengine.com/t/craft-crate-containing-items/44464/21 "2016-03-15T00:00:17Z")

</div>

I know this is an older post, but what about “Event on Spawning In”? Would that work? It’s a 1 time event right?  
NVM, can’t get that node on a storagebox bp. There is however a “On Shooter Character Spawned” node in the primalinventory. Maybe that?

[Next page](https://forums.unrealengine.com/t/craft-crate-containing-items/44464.md?page=2)
