This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
api:component [2016/06/15 08:29] payonel [Component API] |
api:component [2016/06/15 08:45] payonel [Component API] |
||
---|---|---|---|
Line 30: | Line 30: | ||
Note that the component API has a metatable that allows the following syntax: | Note that the component API has a metatable that allows the following syntax: | ||
- | ``` | + | ```lua |
local component = require("component") | local component = require("component") | ||
local rs0 = component.getPrimary("redstone") | local rs0 = component.getPrimary("redstone") |