/MobChip

🐘 Entity AI Library for SpigotMC 1.13+

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

MobChip

Minecraft Entity AI and Bosses Library

Background

Click to Expand

Accessing Entity AI has been widely thought and used over the life of SpigotMC. With many improvements, from Mojang Mappings to tutorials, there were many options. This library aims to help improve the hassle of playing around with NMS and learning how to import and use it with a simple wrapper.

Why?

  • Small: MobChip is currently below 2MB, and we will try to optimize and keep it as small as possible.
  • Simple: MobChip has documentation, API usage, and other utilities to help ease the experience of working with Entity AI.
  • Flexible: With normal NMS, you're often limited with what fields you are able to pick, and obfuscated methods make knowing what to pick even harder. Even with the addition of Mojang Mappings, there's still a lot of things that both new and experienced developers don't know. MobChip uses Reflection and Abstraction to help solve this issue, as well as providing an easy-to-read API and JavaDocs to access important fields and methods.
  • Transparent: Instead of the getHandle() methods in previous versions, we have open wrappers that allow you to switch between MobChip and NMS for your MC Version. Depend on one of the wrapper modules according to your MC Version.

Installation

GitHub GitHub branch checks state GitHub release (latest by date)

Maven
<project>
    
    <!-- Import CodeMC Repo -->
    
    <repositories>
        <repository>
            <id>codemc-snapshots</id>
            <url>https://repo.codemc.io/repository/maven-snapshots/</url>
        </repository>
    </repositories>
    
    <dependencies>
        <dependency>
            <groupId>me.gamercoder215</groupId>
            <artifactId>mobchip-bukkit</artifactId>
            <version>[VERSION]</version>

            <!-- Use something like 1.7.0-SNAPSHOT for a stable release -->
        </dependency>
    </dependencies>
    
</project>
Gradle (Groovy)
repositories {
    maven { url 'https://repo.codemc.io/repository/maven-snapshots/' }
}

dependencies {
    // Use something like 1.9.1-SNAPSHOT for a stable release
    implementation 'me.gamercoder215:mobchip-bukkit:[VERSION]'
}
Gradle (Kotlin DSL)
repositories {
    maven(url = "https://repo.codemc.io/repository/maven-snapshots/")
}

dependencies {
    // Use something like 1.9.1-SNAPSHOT for a stable release
    implementation('me.gamercoder215:mobchip-bukkit:[VERSION]')
}