Skip to content
Igor Timofeev edited this page Jan 23, 2019 · 7 revisions

This library is provided as default global variable by OpenComputers and allows to interact with computer components. In addition to it, MineOS adds some useful methods.

Contents
component.isAvailable
component.get

component.isAvailable(string name): boolean available

Checks if any component with given name is available in computer environment:

component.isAvailable("gpu")
> true

component.get(string name): table or nil proxy

Returns proxy of first available component with given name on success, nil otherwise.

component.get("gpu")
> table

Clone this wiki locally