-
Posts
96 -
Joined
-
Last visited
-
Days Won
2
By using this site you agree to the following Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
[Guide] ComputerCraft Tools
in Tekkit Modpack
Posted
ComputerCraft Tools.
I made this post to facilitate the access to simple tools that I made or I found on internet to make different kind of programs.
peripheral.find This function helps you to find every peripheral connected to the computer of a certain type (sType) or a custom filter (fnFilter). Source.
Example:
Function:
string.random This function gives you a random string with a certain amount of characters. Source: @XMedders
Function:
string.split With this you can split a string into a table with a delimiter.
Example:
Function:
http.getStringWithTimeout This is a custom http.get that have a timeout for the requests if the website doesnt response so your program doesnt get stuck.
Function:
GCAPI
To be honest I'm too lazy to explain all the function of the API so I'm going to give you easy example programs for you to try. I disabled some stuff like the rule34
Download API
> pastebin get XJAdkfJ8 gcapi
Images for Monitor This program display a image from a URL from internet.
Images for glasses This is almost the same that the one for monitors but with commands for the glasses and higher resolution
Note: If you have any question, you found a bug or need something extra just comment this post