βοΈFor Developers
For assistance, please visit the support discord.
Direct Links to Sonatype and the Maven Repositories https://central.sonatype.com/artifact/io.github.arcaneplugins/levelledmobs-plugin https://mvnrepository.com/artifact/io.github.arcaneplugins/levelledmobs-plugin
Maven
1] Add the Repository:
<repository>
<id>Central Sonatype</id>
<url>https://central.sonatype.com/</url>
</repository>2] Add the LevelledMobs dependency:
<dependency>
<groupId>io.github.arcaneplugins</groupId>
<artifactId>LevelledMobs-plugin</artifactId>
<version>X.X.X</version>
</dependency>** Make sure to replace X.X.X with the latest version of LevelledMobs, as referenced here.
Gradle
1] Add the Repository:
repositories {
maven("https://central.sonatype.com/")
}2] Add the LevelledMobs dependency:
implementation("io.github.arcaneplugins:levelledmobs-plugin:X.X.X")** Make sure to replace X.X.X with the latest version of LevelledMobs, as referenced here.
Access the LevelledMobs processing
The LevelInterface class provides core information;
Multiple events which can be listened to and modified with ease;
A populated Javadocs with basic documentation;
Obtaining the Level of a Mob without using the API
Mob levels are stored in the Persistent Data Container (PDC). You can obtain the level without using the LevelledMobs API by using code similar this:
Simplified Solution
Elegant Solution
Simplified Solution
Elegant Solution
Integrating into CustomDrops Sample
Below is a sample bit of code which uses the CustomDrops system of LevelledMobs via the API
Last updated