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

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

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)