forked from SleepingFox8/AM-TreeBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathharvestTrees.lua
More file actions
29 lines (25 loc) · 935 Bytes
/
Copy pathharvestTrees.lua
File metadata and controls
29 lines (25 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
-- initialization
-- import denendencies
local botTools = require ("./AM-Tools/botTools")
local compTools = require ("./AM-Tools/compTools")
local treeBot = require("./TreeBot")
--initialize GLBL table if needed
if GLBL == nil then
GLBL = {}
end
--initialize SCRIPT table
--Stores global variables for just this script
local SCRIPT = {}
-- main program
-- toggle this script off it it is already on
if compTools.anotherInstanceOfThisScriptIsRunning() then
compTools.stopOtherInstancesOfThisScript()
log("&7[&6Bots&7] &6* &cStopping Tree Farm...")
botTools.freezeAllMotorFunctions()
-- silently end this script
return 0
end
log("Harvesting trees")
treeBot.harvestTrees(41,36)
log("Finished harvesting Trees")
botTools.disconnectIfAfkForTenSeconds()