Skip to content

How to create an addon

Bogdan edited this page Jul 30, 2025 · 3 revisions

Creating a Visor Addon

To create a Visor addon, you simply need to define a class that implements VisorAddon, and register your addon using:

VisorAPI.registerAddon(your_addon);

Important: The registration must occur before Visor is initialized. (Visor is initialized after Minecraft resources are loaded)

It is recommended to register your addon during your mod's initialization phase.

Using Visor as a Dependency

It is strongly recommended to depend only on the visor-api module. This module is designed to be stable and is much more reliable for addon development compared to visor-core.

Only use visor-core if:

  • The functionality you need is not exposed through visor-api

In such cases, you can use the visor-fabric or visor-forge artifact, which includes both visor-api and visor-core. However, you should still minimize your reliance on visor-core wherever possible.

Gradle Setup

You can find example Gradle setups here.

Clone this wiki locally