Skip to main content
The Dimensions API lets you write Java addons that hook into portal ignition, teleportation, and destruction — giving you full control over how portals behave in your server. Addons are self-contained JARs that Dimensions discovers and loads at startup using Java’s standard ServiceLoader mechanism, so there is no configuration required on the server side beyond dropping the file in the right folder.

Adding Dimensions to Your Project

To start building an addon, download Dimensions.jar from the SpigotMC resource page and add it to your project’s build path. You do not need to shade it into your addon — it will be present on the server at runtime.
Add Dimensions as a compileOnly (Gradle) or provided (Maven) dependency so it is not bundled into your addon JAR.

Resources

Utility Classes

Dimensions exposes three utility classes that you can use anywhere in your addon code:

Where to Go Next

Creating an Addon

Step-by-step guide to setting up your project, writing your main class, and registering your addon with ServiceLoader.

Example Addon

A complete, working addon that spawns explosion particles when a portal is ignited by a player with the right permission.

API Reference

Detailed documentation for CustomPortal, CompletePortal, and PortalGeometry — the core classes you will interact with.

Events

Reference for the three cancellable events Dimensions fires: use, ignite, and break.