Skip to content

Getting Started

Looking to add custom items and blocks?

The Plugin API is only intended for integrating existing plugins with Nova.
To add custom content, create an addon via the Addon API instead.

To use the Nova API you first have to add the xenondevs maven repository to your build configuration.

<repository>
    <id>xenondevs</id>
    <url>https://repo.xenondevs.xyz/releases</url>
</repository>
maven {
    url 'https://repo.xenondevs.xyz/releases'
}
maven("https://repo.xenondevs.xyz/releases")

Now you can add the API dependency to your build configuration:

<dependency>
    <groupId>xyz.xenondevs.nova</groupId>
    <artifactId>nova-api</artifactId>
    <version>VERSION</version>
    <scope>provided</scope>
</dependency>
implementation "xyz.xenondevs.nova:nova-api:VERSION"
implementation("xyz.xenondevs.nova:nova-api:VERSION")

To get the Nova instance you can use the Nova class:

val nova = Nova.getNova()
Nova nova = Nova.getNova();

You can use this instance to access everything else: