![]() Removes tile, returns it (or false if it was not removed) bp.removeEntityAtPosition(position) Removes entity, returns it (or false if it was not removed) bp.removeTile(tile) Return entity that overlaps position or null. allowOverlap works the same as in createEntity(). Places otherBlueprint at position (being the center of otherBlueprint) with rotations direction (0, 1, 2, or 3 rotating clockwise each time). Returns the new tile bp.placeBlueprint(otherBlueprint, position, direction=0, allowOverlap=false) Can be used to clone an entity using the data of entityToClone.getData() bp.createTile(name, position) Typically used when generating entities from a blueprint string. Returns the new entity bp.createEntityWithData(data, allowOverlap=false, noPlace=false, center=false)Ĭreates an entity with loaded data (containing keys such as name, position, direction, recipe, filters, and other options). Use center if you want position to refer to the center of the entity (again, mainly used by.Use noPlace if you want the entity to be created but not placed (mainly used in.Use allowOverlap to ignore two entities overlapping (which Factorio does not like.).bp.createEntity(name, position, direction=0, allowOverlap=false, noPlace=false, center=false)Ĭreates an entity of type name at position (top-left corner) facing direction. Outputs fancy format with all the entities. ![]()
0 Comments
Leave a Reply. |