-
Notifications
You must be signed in to change notification settings - Fork 2
CC: Base
This page contains a list of all ComputerCraft: Base blocks.
Name | Type | Description |
---|---|---|
Wait <time> seconds |
Statement | Pauses the script for a specified amount of time. |
Args |
Value | Returns the arguments passed to the script. |
Get arg # <int> |
Value | Returns a specific argument passed to the script. |
Amount of arguments |
Value | Returns the number of arguments passed to the script. |
Print <string, number, boolean> |
Statement | Prints a value to the console. |
Write <string, number, boolean> |
Statement | Writes a value to the console without a newline. |
Read |
Value | Reads a line of input from the console. |
Read and replace with <string> |
Value | Reads a line of input from the console and replaces it with a specified value. |
To string: <all> |
Value | Converts a value to a string. |
To number: <string> |
Value | Converts a string to a number. |
Side ( front ¦ back ¦ left ¦ right ¦ top ¦ bottom ) |
Value | Represents a side of the computer. |
Pauses the script for a specified amount of time.
As it waits for a fixed amount of world ticks, time will automatically be rounded up to the nearest multiple of 0.05 seconds.
-
Parameters
-
time
-float
The amount of time to wait in seconds.
-
Returns the arguments passed to the script.
-
Returns
-
table
The arguments passed to the script.
-
Returns a specific argument passed to the script.
-
Parameters
-
int
-int
The index of the argument to return.
-
-
Returns
-
string
The argument at the specified index.
-
Returns the number of arguments passed to the script.
-
Returns
-
int
The number of arguments passed to the script.
-
Prints a value to the console.
To print list or table values, use the To string: <all>
block.
-
Parameters
-
string, number, boolean
-any
The value to print.
-
Writes a value to the console without a newline.
To write list or table values, use the To string: <all>
block.
-
Parameters
-
string, number, boolean
-any
The value to write.
-
Reads a line of input from the console.
-
Returns
-
string
The line of input read from the console.
-
Reads a line of input from the console and replaces it with a specified value.
-
Parameters
-
string
-string
The value to replace the input with.
-
-
Returns
-
string
The line of input read from the console.
-
Converts a value to a string.
-
Parameters
-
all
-any
The value to convert.
-
-
Returns
-
string
The value converted to a string.
-
Converts a string to a number.
-
Parameters
-
string
-string
The string to convert.
-
-
Returns
-
number
The string converted to a number.
-
Represents a side of the computer.
-
Returns
-
string
The side of the computer. Possible values arefront
,back
,left
,right
,top
, andbottom
.
-