Skip to content

Look APIΒΆ

Look API are mostly just improved inspect from ComputerCraft Turtle API. It is not pretty useful by itself, but it helps to understand who will be targeted of another APIs, like Interaction API or Capture API.

Function Returns Description
look(mode: InteractionMode, direction?: Direction) table Returns detailed information about first target in line of sight.
Look output examples
Entity
{
    "type": "Cow",
    "name": "Cow",
    "category": "CREATURE",
    "id": 1269,
    "tags": {},
    "uuid": "0737fd25-a1b6-4a1a-9cdd-3081e0155bb6"
}
Block