This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
add_item_to_container [2020/01/17 09:37] – justin | add_item_to_container [2020/01/25 10:18] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Adds one or more of the specified item to an item container. The ID of the item is case-sensitive and should match the ID assigned to it in the [[item_editor|Item Editor]] (e.g. " | + | Adds one or more of the specified item to an item container. The ID of the item is case-sensitive and should match the ID assigned to it in the [[item_editor|Item Editor]] (e.g. " |
====Signature: | ====Signature: | ||
- | < | + | < |
add_item_to_container(entity, | add_item_to_container(entity, | ||
</ | </ | ||
Line 15: | Line 15: | ||
====Example: | ====Example: | ||
- | < | + | < |
add_item_to_container(self, | add_item_to_container(self, | ||
</ | </ | ||
Line 21: | Line 21: | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Add Item Container** function to ... | + | Use the **Add Item Container** function to place a new item into a chest or onto a table after the player has performed an action to build or " |
</ | </ | ||
Line 34: | Line 34: | ||
<WRAP half column> | <WRAP half column> | ||
====Visual Demo:==== | ====Visual Demo:==== | ||
- | {{:wiki:give_item_demo.gif? | + | {{:wiki:add_item_to_container_demo.gif? |
</ | </ | ||
</ | </ |