refactor: create libs and config folders
This commit is contained in:
parent
7a7542e851
commit
e8ce29bad6
11
README.md
11
README.md
@ -1,6 +1,15 @@
|
||||
# Installation
|
||||
# minecraft-cc-tools
|
||||
|
||||
Some tools for cc:tweaked minecraft mod (aka computercraft)
|
||||
|
||||
## Download the installation script
|
||||
|
||||
```
|
||||
wget https://git.trapcloud.fr/guillaumearm/minecraft-cc-tools/raw/branch/master/install.lua
|
||||
```
|
||||
|
||||
## Execute the installation script
|
||||
|
||||
```
|
||||
install
|
||||
```
|
||||
|
||||
11
install.lua
11
install.lua
@ -1,12 +1,12 @@
|
||||
local LIST_FILES = {
|
||||
'turtle-utils.lua',
|
||||
'robot.lua',
|
||||
'miner.lua'
|
||||
'miner.lua',
|
||||
'libs/turtle-utils.lua',
|
||||
'libs/robot.lua'
|
||||
};
|
||||
|
||||
local LIST_CONFIG_FILES = {
|
||||
'startup.lua',
|
||||
'config-miner.lua'
|
||||
'config/config-miner.lua'
|
||||
}
|
||||
|
||||
|
||||
@ -14,6 +14,9 @@ local REPO_PREFIX = 'https://git.trapcloud.fr/guillaumearm/minecraft-cc-tools/ra
|
||||
|
||||
local previousDir = shell.dir()
|
||||
|
||||
fs.makeDir('/libs')
|
||||
fs.makeDir('/config')
|
||||
|
||||
for _, filePath in pairs(LIST_FILES) do
|
||||
fs.delete(filePath)
|
||||
shell.execute('wget', REPO_PREFIX .. filePath, filePath)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
local robotApi = require('robot')
|
||||
local turtleUtils = require('turtle-utils')
|
||||
local config = require('config-miner')
|
||||
local robotApi = require('libs/robot')
|
||||
local turtleUtils = require('libs/turtle-utils')
|
||||
local config = require('config/mining')
|
||||
|
||||
local LOWER_SIZE_LIMIT = 2;
|
||||
local HIGHER_SIZE_LIMIT = 128;
|
||||
|
||||
@ -1 +1 @@
|
||||
shell.execute('/miner.lua')
|
||||
-- shell.execute('/miner.lua')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user