User Tools

Site Tools


put_entity

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
put_entity [2020/07/23 09:37] justinput_entity [2021/10/30 20:16] justin
Line 6: Line 6:
 ====Signature:==== ====Signature:====
 <code python> <code python>
-put_entity(entity, tile_id)+put_entity(entity, target_tile)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|entity|Entity to reposition.|[[Entity]]|Yes| +|entity|[[Entity]] to reposition.|[[Entity]]|Yes| 
-|tile_id|ID of the destination tile.|[[String]]|Yes|+|target_tile|Target [[tile]] onto which the entity will be placed.|[[Entity]], [[Coordinate]]|Yes|
  
 <WRAP center round info 100%> <WRAP center round info 100%>
Line 19: Line 19:
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-put_entity(entity["slippery_chest"], "chest_destination")+put_entity(entity["slippery_chest"], "chest_destination");
 </code> </code>
 //Results:// The [[entity]] with an ID of "slippery_chest" is immediately repositioned onto the [[tile]] with an ID of "chest_destination". //Results:// The [[entity]] with an ID of "slippery_chest" is immediately repositioned onto the [[tile]] with an ID of "chest_destination".
Line 32: Line 32:
 <WRAP half column> <WRAP half column>
 ====Editor Node:==== ====Editor Node:====
-{{:wiki:put_entity_node.png?nolink|}}+{{:put_entity_node.png?nolink|}}
 </WRAP> </WRAP>
  
 <WRAP half column> <WRAP half column>
 ====Visual Demo:==== ====Visual Demo:====
-{{:wiki:put_entity_demo.gif?nolink|}}+{{:put_entity_demo.gif?nolink|}}
 </WRAP> </WRAP>
 </WRAP> </WRAP>
put_entity.txt · Last modified: 2021/10/30 20:17 by justin