Difference between revisions of "ComputerCraft Interface"

From WebDisplays
Jump to: navigation, search
(Created page with "The ComputerCraft Interface is a peripheral that was used to allow the ComputerCraft mod to interact with screens through Lua. Since ComputerCraft is not...")
 
 
Line 1: Line 1:
The ComputerCraft Interface is a [[Screen#Peripheral|peripheral]] that was used to allow the ComputerCraft mod to interact with screens through Lua. Since ComputerCraft is not available for Minecraft 1.12.2, this peripheral can't be used and thus its crafting has been disabled.
+
The ComputerCraft Interface is a [[Screen#Peripheral|peripheral]] which can be used by ComputerCraft computers to interact with screens through Lua.
 +
 
 +
{{#widget:AdSense}}
 +
 
 +
==Recipe==
 +
[[File:Ccinterface.png]]
 +
 
 +
The item on the left is a [[Peripheral Base]], used to craft all peripherals.
 +
 
 +
==How to use==
 +
First, place the block next to a ComputerCraft computer and link it to a screen using the [[Linking Tool]]. Then, all you have to do is to call peripheral.wrap with the corresponding side.
 +
So, if you placed the interface on the right of the computer:
 +
<syntaxhighlight lang="lua" line='line'>
 +
wdScreen = peripheral.wrap("left")
 +
</syntaxhighlight>
 +
 
 +
==Permissions==
 +
This interface will have the same restrictions and permissions as the player who placed the block.
 +
 
 +
==Functions==
 +
Functions are the same as the [[OpenComputers Interface]] ones.

Latest revision as of 14:02, 24 July 2019

The ComputerCraft Interface is a peripheral which can be used by ComputerCraft computers to interact with screens through Lua.

Recipe

Ccinterface.png

The item on the left is a Peripheral Base, used to craft all peripherals.

How to use

First, place the block next to a ComputerCraft computer and link it to a screen using the Linking Tool. Then, all you have to do is to call peripheral.wrap with the corresponding side. So, if you placed the interface on the right of the computer:

1 wdScreen = peripheral.wrap("left")

Permissions

This interface will have the same restrictions and permissions as the player who placed the block.

Functions

Functions are the same as the OpenComputers Interface ones.