Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function attackLoop()
- while (true) do
- turtle.attack()
- os.sleep(1)
- end
- end
- function dropItemLoop()
- while (true) do
- turtle.suck()
- count = 1
- while count <= 16 do
- turtle.select(count)
- turtle.dropDown()
- count = count + 1
- end
- end
- end
- function installAPI()
- shell.run("pastebin", "get", "KYtYxqHh", "/APIs/threading")
- end
- function threadMain()
- os.startThread(attackLoop)
- os.startThread(dropItemLoop)
- end
- if not fs.exists("/APIs/threading") then
- installAPI()
- end
- shell.run("/APIs/threading")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement