Skip to content

miles352/CBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

156 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A C++ library for creating bots that can connect to Minecraft servers. Mostly a work in progress.

Installation

I would recommend adding this repository as a git submodule in your project:

git submodule add https://github.com/miles352/CBot.git CBot

Then in your CMakeLists.txt you should just have to:

add_subdirectory(CBot)
target_link_libraries(${PROJECT_NAME} PUBLIC CBot)

Basic Usage:

const char* SERVER_IP = "127.0.0.1";
const char* SERVER_PORT = "25565";

int main()
{
    Bot bot(SERVER_IP, SERVER_PORT);
    
    
    bot.event_bus.on<TickEvent>([](Bot& bot) {
        // Do something every tick
    });
    
    
    bot.start();
}

About

C++ library for creating minecraft bots

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors