Skip to content

Sparky983/diorite

Repository files navigation

Diorite

Diorite is a fast, powerful, reactive library to enable the quick and easy creation of Minecraft bots.

Quick Links

Installation

Gradle (kotlin)

repositories {
    maven("https://repo.sparky983.me/snapshots")
}

dependencies {
    implementation("io.github.sparky983:diorite-client:1.0.0-SNAPSHOT")
}

Gradle (groovy)

repositories {
    maven { url 'https://repo.sparky983.me/snapshots' }
}

dependencies {
    implementation 'io.github.sparky983:diorite-client:1.0.0-SNAPSHOT'
}

Maven

<repositories>
    <repository>
        <id>sparky-snapshots</id>
        <name>Sparky's repository</name>
        <url>https://repo.sparky983.me/snapshots</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>io.github.sparky983</groupId>
        <artifactId>diorite-client</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </dependency>
</dependencies>

Hello World Bot

public class Main {
    public static void main(String[] args) {
        // Connect to localhost:25565
        DioriteClient client = DioriteClient.builder().connect();
        
        // Say "Hello, world!" in chat and block until complete
        client.chat("Hello, world!").block();
        
        // Disconnect the client
        client.close();
    }
}

Related Projects

Run paper plugins within single contained jar.

When paired with the diorite client, this can be used for easy acceptance testing (and soon integration testing).

About

A Minecraft Java client and protocol library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published