https://github.com/brooswit/c4
Computer Craft Code Catalog (C4) is yet another ComputerCraft dependency manager.
https://github.com/brooswit/c4
computercraft-scripts lua minecraft
Last synced: 7 months ago
JSON representation
Computer Craft Code Catalog (C4) is yet another ComputerCraft dependency manager.
- Host: GitHub
- URL: https://github.com/brooswit/c4
- Owner: brooswit
- Created: 2022-05-04T02:50:49.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-02T16:12:44.000Z (over 3 years ago)
- Last Synced: 2025-02-22T16:02:44.198Z (about 1 year ago)
- Topics: computercraft-scripts, lua, minecraft
- Language: Lua
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C4
Computer Craft Code Catalog (C4), a ComputerCraft dependency manager
## Getting Started
1. Open a brand-new computer. You should see a command-line interface.
2. Type `edit install_c4.lua`. You should be taken to a text editor.
3. Copy/paste the following into the text editor:
```
local request = http.get(("https://raw.githubusercontent.com/brooswit/c4/main/c4.lua?cb=%x"):format(math.random(0, 2 ^ 30)))
local file = fs.open("c4", "w")
file.write(request.readAll())
file.close()
```
* Note, you may need to copy/paste the code one line at a time, unfortunately.
4. Press `ctrl`. You should see `Save` and `Exit` along the bottom.
5. Make sure `Save` is selected and press the `enter` key. This will save the file.
6. Press `ctrl` again, and select Exit. You should now be taken back to the command-line interface.
7. Run the installer: `install_c4"
Now you can load C4 applications and libraries.
## Usage
`c4 hello`
`c4 `