https://github.com/krypt0nn/computercraft
Compilation of computercraft scripts used by me in our temporary minecraft server
https://github.com/krypt0nn/computercraft
Last synced: 4 months ago
JSON representation
Compilation of computercraft scripts used by me in our temporary minecraft server
- Host: GitHub
- URL: https://github.com/krypt0nn/computercraft
- Owner: krypt0nn
- License: mit
- Created: 2024-03-03T11:58:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-09T10:36:53.000Z (about 1 year ago)
- Last Synced: 2025-06-09T11:33:26.916Z (about 1 year ago)
- Language: Lua
- Homepage:
- Size: 633 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup
Run this command in the computer to download `require.lua` script:
```
wget https://raw.githubusercontent.com/krypt0nn/computercraft/main/require.lua
```
Run this command to download the quickstart file:
```
wget https://raw.githubusercontent.com/krypt0nn/computercraft/main/quickstart.lua my_app.lua
```
# Usage
Add this code to the header of your script:
```lua
local packages = dofile("require.lua")({
source = "https://raw.githubusercontent.com/krypt0nn/computercraft/main/libs",
cache = "cache", -- Optional field
packages = {
fuel = {
minimalVersion = 3
}
}
})
-- Your script code
-- Example:
packages.fuel.refuel()
```
If `cache` field is given, then packages will be cached to the local folder.
Otherwise they will always be loaded dynamically from the internet.
Author: [Nikita Podvirnyi](https://github.com/krypt0nn)\
Licensed under [MIT](LICENSE)