This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
component:debug [2020/05/22 21:33] forecaster [Component: Debug] |
component:debug [2020/05/22 21:43] (current) forecaster [Component: Debug] |
||
---|---|---|---|
Line 8: | Line 8: | ||
The debug card's "container" refers to the robot, computer or tablet with a debug card installed in it. | The debug card's "container" refers to the robot, computer or tablet with a debug card installed in it. | ||
+ | |||
+ | On a dedicated server the debug card must be bound to a player by shift-right-clicking with it to run commands using the runCommand callback. The bound player needs to have permission to use the command provided to runCommand. | ||
Callbacks: | Callbacks: | ||
Line 14: | Line 16: | ||
Changes the component network's energy buffer by the specified delta. | Changes the component network's energy buffer by the specified delta. | ||
- `connectToBlock(x:number, y:number, z:number):boolean` | - `connectToBlock(x:number, y:number, z:number):boolean` | ||
- | Connect the debug card to the block at the specified coordinates. | + | Connect the debug card to an opencomputers-compatible block at the specified coordinates. |
- `getPlayer(name:string):userdata` | - `getPlayer(name:string):userdata` | ||
Get the entity of a player. | Get the entity of a player. |