From 7a7542e8511256615d2e8924cf7e47fd7482c9e9 Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Sat, 11 May 2024 22:42:57 +0200 Subject: [PATCH] feat: add startup.lua to automatically start the mining process --- README.md | 3 ++- install.lua | 1 + startup.lua | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 startup.lua diff --git a/README.md b/README.md index 9dff50c..38a3ffb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Installation ``` -wget run https://git.trapcloud.fr/guillaumearm/minecraft-cc-tools/raw/branch/master/install.lua +wget https://git.trapcloud.fr/guillaumearm/minecraft-cc-tools/raw/branch/master/install.lua +install ``` diff --git a/install.lua b/install.lua index a0cdea2..ffaeb8a 100644 --- a/install.lua +++ b/install.lua @@ -5,6 +5,7 @@ local LIST_FILES = { }; local LIST_CONFIG_FILES = { + 'startup.lua', 'config-miner.lua' } diff --git a/startup.lua b/startup.lua new file mode 100644 index 0000000..5cd4e16 --- /dev/null +++ b/startup.lua @@ -0,0 +1 @@ +shell.execute('/miner.lua')