diff --git a/README.md b/README.md new file mode 100644 index 0000000..9dff50c --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Installation + +``` +wget run https://git.trapcloud.fr/guillaumearm/minecraft-cc-tools/raw/branch/master/install.lua +``` diff --git a/install.lua b/install.lua new file mode 100644 index 0000000..c9f8c08 --- /dev/null +++ b/install.lua @@ -0,0 +1,16 @@ +local LIST_FILES = { + 'turtle-utils.lua', + 'robot.lua', + 'miner.lua' +}; + +local REPO_PREFIX = 'https://git.trapcloud.fr/guillaumearm/minecraft-cc-tools/raw/branch/master/' + +local previousDir = shell.dir() + +for _, filePath in pairs(LIST_FILES) do + fs.delete(filePath) + shell.execute('wget', REPO_PREFIX .. filePath, filePath) +end + +shell.setDir(previousDir)