User Tools

Site Tools


add_item_to_container

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
add_item_to_container [2020/01/17 09:23] justinadd_item_to_container [2020/01/17 09:30] justin
Line 16: Line 16:
 ====Example:==== ====Example:====
 <code python> <code python>
-add_item_to_container("wooden_chest", "ITEM_0001", 2)+add_item_to_container(self, "ITEM_0001", 1)
 </code> </code>
-//Results:// Two of ITEM_0001 are placed into the "wooden_chest" container entity.+//Results:// One of ITEM_0001 is placed into the container entity from which the script was triggered.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
add_item_to_container.txt · Last modified: 2023/01/02 21:08 by justin