Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sv443/jokeapi_computercraft

A ComputerCraft program that displays a joke from https://github.com/Sv443/JokeAPI on an in-game monitor
https://github.com/sv443/jokeapi_computercraft

computercraft entertainment jokes lua minecraft minecraft-mod

Last synced: 8 days ago
JSON representation

A ComputerCraft program that displays a joke from https://github.com/Sv443/JokeAPI on an in-game monitor

Awesome Lists containing this project

README

        

# JokeAPI_ComputerCraft
## A ComputerCraft program that displays a joke from [JokeAPI](https://github.com/Sv443/JokeAPI) on an in-game monitor on interval


![example image](./example.png)



## Installation:
1. Craft a computer and around 4-12 monitors
2. Place the monitors next to each other and make sure one of them touches the computer
3. Run the following commands in the computer:
```
label set jokeapi
pastebin get 6tnmW93j startup
edit startup.lua
```
4. Change the `MONITOR_SIDE` variable at the top to the side where your computer touches the monitors
- Valid side values are: `"front"`, `"back"`, `"left"`, `"right"`, `"top"` or `"bottom"`
- The other variables can of course also be changed, like the interval at which a new joke is fetched or the text size
5. Press `Ctrl`, navigate to `Save` and press `Enter` to save your changes
6. Press `Ctrl`, navigate to `Exit` and press `Enter` to exit the editor
7. Run the command `reboot`

After these steps, the computer will enter an infinite loop. To exit it, hold down `Ctrl` and `T`.
To edit the program, go to step 4 again.



### License:
This code is licensed under the [MIT license](https://sv443.net/LICENSE)