Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Runtime Docs Version 2.0.77

# TilePosition - Runtime Docs

## TilePosition :: table or {int32, int32}

Coordinates of a tile on a LuaSurface where each integer `x`/`y` represents a different tile. This uses the same format as MapPosition, except it rounds any non-integer `x`/`y` down to whole numbers. It can be specified either with or without explicit keys.

#### Table fields

x | :: int32 |
y | :: int32 |

Concept used in

- LuaEntity::get_fluid_source_tile()
- LuaGameScript::take_screenshot()
- LuaItemCommon::blueprint_snap_to_grid
- LuaItemCommon::blueprint_position_relative_to_grid
- LuaRecord::blueprint_snap_to_grid
- LuaRecord::blueprint_position_relative_to_grid
- LuaSpacePlatform::damage_tile()
- LuaSpacePlatform::repair_tile()
- LuaSpacePlatform::damaged_tiles
- LuaSurface::get_hidden_tile()
- LuaSurface::get_double_hidden_tile()
- LuaSurface::set_hidden_tile()
- LuaSurface::set_double_hidden_tile()
- LuaSurface::get_connected_tiles()
- LuaSurface::destroy_decoratives()
- LuaSurface::find_decoratives_filtered()
- LuaSurface::clone_brush()
- LuaTile::position
- Decorative
- DecorativeResult
- OldTileAndPosition
- SpacePlatformTileDefinition
- Tile
- UndoRedoAction
- on_brush_cloned
- on_gui_closed
- on_gui_opened