Skip to content

Instantly share code, notes, and snippets.

@jamezrin jamezrin/Bots.bat
Last active Jan 16, 2016

Embed
What would you like to do?
@echo off
::The number of bots
set BOTS=10
::The ip to connect
set IP=127.0.0.1:25565
::The delay between connections
set DELAY=0
::The name for the bots
set NAME=Bot%%N
:start
echo Putting %BOTS% bots into %IP%
for /l %%N in (1 1 %BOTS%) do (
timeout %DELAY% /nobreak > nul
start cmd.exe /c MinecraftClient.exe %NAME% - %IP%
echo %NAME% has entered %IP%
)
echo %BOTS% bots have entered %IP%, press a key to stop or Crlt+C to close this window
pause
goto stop
:stop
echo Closing all bots instances
taskkill /f /im MinecraftClient.exe
echo All the bots instances have been closed, press a key to start again or Crlt+C to close this window
pause
goto start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.